Best pattern when using createStore to store large amount of data for a large app?
As the title says, what is the best pattern, is there an example on github or something you could show? In react + mobx, I know this pretty nice pattern which looks really clean and been using. Is there something like this pattern or something better for createStore?
3 Replies
We don't have
makeAutoObservable
, but you could create signals for each property of your users and a store for Users.users. While you can use classes in Solid, using simple objects and arrays is usually more effective.You can
return createMutable(this)
from the constructor as an equivalent to makeAutoObservable(this)
but I really wouldn't recommend it hahayea, that was just an example, if anyone has some good patterns for solidjs, please do share 😅