jamiebuilds / unstated-next

200 bytes to never think about React state management libraries ever again
MIT License
4.18k stars 145 forks source link

Can I use unstated-next to store non-serializable data? #70

Open cabello opened 4 years ago

cabello commented 4 years ago

Hi 👋

Redux strongly recommends to only keep serializable data in state, they have efficiencies around applying diffs, time travel, persistence, etc.

I want to store object instances like WebRTC streams and use a state management for that, I am wondering if unstated-next would behave well in this case?

Thanks for sharing this awesome project with the world! 💜

ilionic commented 4 years ago

Also interested, example of use case based on Context https://reactjs.org/docs/context.html#updating-context-from-a-nested-component