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

Fix #2671: Showcase store theme in local storage #2772

Merged
merged 6 commits into from
Nov 10, 2022

Conversation

melloware
Copy link
Member

###Defect Fixes
Fix #2671: Showcase store theme in local storage

Added new hook useStorage which can be a drop in replacement for anywhere you use useState. You can choose session or local storage but it defaults to local storage

@melloware melloware added the Status: Pending Review Issue or pull request is being reviewed by Core Team label Apr 19, 2022
@mertsincan
Copy link
Member

Hi @melloware,

Could you please create a new issue about useStorage? We can add it. I'm waiting for feedback about the showcase issue from @cagataycivici .

@melloware
Copy link
Member Author

OK this PR rebased after the useStorageHook was merged

@melloware melloware merged commit 26e6c00 into primefaces:master Nov 10, 2022
@melloware melloware deleted the PR2671 branch November 10, 2022 18:22
@mertsincan
Copy link
Member

mertsincan commented Jan 26, 2023

This commit has been manually reverted for now as it causes hydration problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Pending Review Issue or pull request is being reviewed by Core Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Showcase: Save theme setting in localStorage
2 participants