Open aitoroses opened 8 years ago
@aitoroses this is a great thing to bring up, thank you. I want this library to support "offline-first" applications, where serialization/deserialization is very important. I plan to build in methods to bootstrap data from a serialized set of data just fine. I don't believe the usage of classes inside of redux state prevents this.
Hi @lelandrichardson, I have been searching for libraries like this one and I really like your approach to solve the state schema thing.
The only problem I encounter it's the use of functions and prototypes into the state atom. Redux really favors having plain state objects or native types that are not functions or class instances, just think of serialization and deserialization of state, in the case of offline-first and state persistance across sessions.
Have you wondered how would you solve this? Maybe a functional approach more than OOP or something...
Thanks anyway for creating this library, it's so much convenient for large-scaled projects and as it evolves it will get better 😄