-
So, I am developing entity store with pagination and when filtering is used I need to delete all entities and to call API to retrieve new paginated content. I tried store.update(deleteAllEntities({ ref: UIEntitiesRef }), deleteAllPages()) but that did not work. Now I am using store.update(deleteEntities(store.getValue().ids), deleteAllEntities({ ref: UIEntitiesRef }), deleteAllPages()) and that is working. Why the first deletion way does not work? Or what is the best way to delete store with entities referring to UI entities? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This is the way to clear the store if I am using entities with UI entities and pagination
|
Beta Was this translation helpful? Give feedback.
This is the way to clear the store if I am using entities with UI entities and pagination
store.update( deleteAllEntities(), deleteAllEntities({ ref: UIEntitiesRef }), deleteAllPages() );