Closed jer3m01 closed 5 months ago
thanks for opening the issues, looks like solid advice! i'll definitely implement them in clear while working on the next update!
Thank you so much for the suggestions! The store for libraryData
was implemented in be7097c and global contexts were implemented in bd05d83
Instead of
(and also instead of below from #5)
you can use a
store
to manage all your options:A store is like a signal but it works with deeper objects and retains reactivity for nested updates. This also allows you to load the data straight from the JSON:
For use inside the context you can either export the store itself:
or you could create derived signals and setters for each:
Solid docs: https://docs.solidjs.com/concepts/stores https://docs.solidjs.com/reference/store-utilities/create-store
Checkout #7 for a better storage interface.