Replies: 1 comment 1 reply
-
We could even have multiple data tables schema, each with its own Store class. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How about defining an interface (possibly an ABC) for a store?
With methods to save an atom and retrieve one by id.
We could then create concrete implementations of that interface for e.g. LoacalStorage, IndexedDb, data tables and users could create their own for whatever third party solution they want.
Rather than adding persistence methods to atoms, we delegate that job to a separate object.
Beta Was this translation helpful? Give feedback.
All reactions