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
Hi. Thanks for this amazing library. I want to know how store5 handles this two scenarios:
1st - When API returns an empty list (the expected result should be that the store clears the cache)
2nd - API returns 5 items on the first load, and on the second load it returns 4 items as one was deleted. (the expected result should be that the SourceOfTruth (cache) should also delete the item.)
i use store.clear() to overcome this but perhaps there maybe something I am missing.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi. Thanks for this amazing library. I want to know how store5 handles this two scenarios:
1st - When API returns an empty list (the expected result should be that the store clears the cache)
2nd - API returns 5 items on the first load, and on the second load it returns 4 items as one was deleted. (the expected result should be that the SourceOfTruth (cache) should also delete the item.)
i use store.clear() to overcome this but perhaps there maybe something I am missing.
Beta Was this translation helpful? Give feedback.
All reactions