enhance-dev / enhance-ssr

Server side render for custom elements.
143 stars 9 forks source link

Consider throwing error if initialState is not an object #34

Open ryanbethel opened 2 years ago

ryanbethel commented 2 years ago

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.