question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Prop `aria-owns` did not match. - SSR

See original GitHub issue

Short description

I was trying to add react-geosuggest (v2.12.1) to a next.js (v9.1) application, however, I get a warning in my console: Warning: Prop aria-owns did not match. Server: "geosuggest__list_c2f6f86958fd7" Client: "geosuggest__list_b47ff6fa5019f"

Expected results

I expected the integration to work without warnings.

Actual results

I got a warning in the console, the culprit, in my opinion, is math.random generated listId in the Geosuggest.tsx.

https://github.com/ubilabs/react-geosuggest/blob/9f8fabbb6a066f004bd98490c79e229c9130d8ed/src/Geosuggest.tsx#L108

Additional Information

Perhaps I am simply missing something here or the warning might not be relevant at all, however, I like to keep my console clean and wasn’t able to solve this on my own.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ro-kacommented, May 29, 2020

The random ID will be removed and it’s possible to set an ID on the Geosuggest to have aria-owns work even when there are multiple instances on a page. Thanks for reporting!

0reactions
ro-kacommented, Jun 19, 2020

A release was due, the PR was just released in 2.13.1.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Warning: Prop aria-owns did not match. #468 - GitHub
Short description I was trying to do use Geosuggest component within next.js app but I got this error: Warning: Prop `aria-owns` did not...
Read more >
Prop `aria-current` did not match. Server: "null" Client: "page"
Here is how I have set up the router: import React from 'react' import { navbar } from './navbar ...
Read more >
Prop `aria-owns` did not match. - SSR - Bountysource
Short description. I was trying to add react-geosuggest (v2.12.1) to a next.js (v9.1) application, however, I get a warning in my console: ...
Read more >
Select warns about specifying an aria-label - Developer Support
When i use Select component, it keep gives me a error message “If you do not provide a visible label, you must specify...
Read more >
Server Side Rendering – React Aria
Server side rendering, or SSR, is the process of rendering components to HTML on the server, rather than rendering them only on the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found