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

Evaluate storing state in URL or localstorage #31

Open
nickdos opened this issue Sep 21, 2022 · 1 comment
Open

Evaluate storing state in URL or localstorage #31

nickdos opened this issue Sep 21, 2022 · 1 comment
Labels
enhancement New feature or request front-end React

Comments

@nickdos
Copy link
Collaborator

nickdos commented Sep 21, 2022

Something like this is needed if the "basket" view is displayed via a route, because if the user returns to the search route then any state is lost.

https://jotai.org handles URL state.
Example of localstorage: https://www.robinwieruch.de/local-storage-react/ or dedicated lib https://www.npmjs.com/package/use-local-storage-state.

@nickdos
Copy link
Collaborator Author

nickdos commented Oct 5, 2022

@nickdos nickdos added enhancement New feature or request front-end React labels Oct 25, 2022
nickdos added a commit that referenced this issue Dec 23, 2022
Using `use-query-params` npm package
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request front-end React
Projects
None yet
Development

No branches or pull requests

1 participant