-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version 2.24.70 Breaks How location.search Gets Updated #27351
Comments
I reproduced this locally. Probably caused by this: #27261 (comment) |
'ello! I have another example of this if it would help to have another reference. :) A project you can clone + run locally (by default runs latest Gatsby and therefore the
It's based off this project and you can see an example built with If you put a breakpoint where |
👋 Hi @vladar I am happy to pick this one up as it was my PR that seemed to cause it. Just to double check my understanding though - the location search is currently not effecting the navigation when it should be because in the navigation we are using |
Hey @WillMayger ! That would be awesome! 💜 So yeah, I think the issue is that we should update on any location string change (so |
👍 Brilliant thanks for the info, I will get started on a PR this weekend! |
👋 Hi Everyone, sorry I didn't manage to get round to it last weekend. Please can I get a review on my PR which contains tests & a fix for this issue: #27594 Thanks |
Thanks again! Published in |
@vladar @WillMayger It works like a charm. Thank you very much. |
Description
Starting with version 2.24.70 my website's search field stopped working.
Steps to reproduce
yarn install && yarn run develop
http://localhost:8000/
in the browser and try the search field. Note that it does work.yarn install && yarn run develop
http://localhost:8000/
in the browser and try the search field. Note that it does not work.It looks like since 2.24.70 the changes to location.search don't cause the useEffect hook to execute.
Expected result
The useEffect hook should run. The website should display the search results.
Actual result
It doesn't.
Environment
The text was updated successfully, but these errors were encountered: