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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cabello opened this issue Apr 16, 2020 · 1 comment
Open

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

cabello opened this issue Apr 16, 2020 · 1 comment

Comments

@cabello
Copy link

cabello commented Apr 16, 2020

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
Copy link

ilionic commented May 23, 2020

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

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