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

Syncing sessionStorage across tabs #8

Open
nerdstep opened this issue Mar 13, 2019 · 1 comment
Open

Syncing sessionStorage across tabs #8

nerdstep opened this issue Mar 13, 2019 · 1 comment

Comments

@nerdstep
Copy link

This is probably unconventional, but I currently have an use-case where I'd like to use sessionStorage as the storageProvider and have the value synced across tabs/windows similar to the localStorage provider.

The use-case is a splash screen that the user clicks through once upon application load, so sessionStorage is ideal in this situation since they shouldn't see it again upon browser refresh, but I'd like this value to also sync across tabs.

Any thoughts on whether or not it's a feasible goal for this hook?

@tiagojufr
Copy link

Probably a bit late, but sessionStorage per definition can't be shared across tabs. That is not an issue with the hook. More info here.

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

No branches or pull requests

2 participants