How do I best have createMemo in a store?
I'm used to MobX, where I can put a @computed on any method in a store.
In Solid, how do I best replicate this?
If I do this:
Then I get the error:
computations created outside a
I'd love to "cache" this value. There are thousands of documents and only one can be active at any time. How would you best structure the store for this, so that the comparisons cached/memoed?
In Solid, how do I best replicate this?
If I do this:
Then I get the error:
computations created outside a
createRoot or render will never be disposedI'd love to "cache" this value. There are thousands of documents and only one can be active at any time. How would you best structure the store for this, so that the comparisons cached/memoed?
