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

Doesn't work well in testing environments #5

Open
nwalters512 opened this issue Feb 19, 2019 · 0 comments
Open

Doesn't work well in testing environments #5

nwalters512 opened this issue Feb 19, 2019 · 0 comments
Assignees

Comments

@nwalters512
Copy link
Member

Since any meaningful behavior hinges on the availability of the window object, this hook doesn't work well in testing environments. We should be able to gracefully degrade to work exactly like setState if window or the localStorage API isn't available.

@nwalters512 nwalters512 self-assigned this Feb 19, 2019
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

1 participant