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

Consider throwing error if initialState is not an object #34

Open
ryanbethel opened this issue Oct 13, 2022 · 0 comments
Open

Consider throwing error if initialState is not an object #34

ryanbethel opened this issue Oct 13, 2022 · 0 comments

Comments

@ryanbethel
Copy link
Contributor

This comes from discussion in another issue. The API can return arrays and scalars, but the get weird in enhance SSR and then things would really go wrong if you try to add them to the store. So I think we should consider throwing an error if initialState is not an object.

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