You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just to make sure, I'm not opposed to adding this to ObservableMap for completeness, but I have some concerns with adding this to stores (see #24 (comment))
It does not create a lot of different keys for subscription.
Everything is updated as long as any accessor methods (like find) reads from state.values.
Cons:
When a change is done, all the components using the store are re-rendered (but, to be honest, I think we would need to do something similar in the end if we were to support delete).
Its not unusual to use a store as a map of items:
This seems to work really well with
@stencil/store
:until you try to delete an item:
I'd like to propose adding a delete method to the store to allow you to do the following:
What are your opinions on this? I can see it being an issue with the current recommended usage:
But I think its utility outweighs its possible pitfalls.
The text was updated successfully, but these errors were encountered: