clear or reset Map Store #212
martinrojas
started this conversation in
General
Replies: 1 comment
-
Why not just |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Not sure if this fall under examples or actually a new feature, but for a Map store, what would be the correct way to clear all items?
Taking the example of a shopping cart for a Map store, one of the most common features would be to clear the cart. The only way I see to do that now would be to write a loop that would read each item and mark it as
undefined
That would cause a lot of rendering and on a large enough store, cause significant performance problemsBeta Was this translation helpful? Give feedback.
All reactions