Skip to content
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

Debugging react-usequerystate #51

Closed
wants to merge 7 commits into from
Closed

Debugging react-usequerystate #51

wants to merge 7 commits into from

Conversation

tordans
Copy link
Contributor

@tordans tordans commented Nov 17, 2023

See 47ng/nuqs#400
Also related to 47ng/nuqs#399

…on present all the time

This is wasteful since we have to query the region every time…
This is not a great solution, because the static data will move to the DB at some point, but for now it is good enough and makes sure we do not query the DB.
This does guard the application against undefined states where the initial URL is invalid. However, it also causes weird state effects.
1. Open page with broken config-param
2. App fixes the config-param and renders fine but does not fix the URL
3. Only once the user triggers a setConfig, the fixed URL is populated
@tordans tordans closed this Feb 14, 2024
@tordans tordans deleted the debug-querystate branch February 14, 2024 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant