Replies: 5 comments
-
I don't really get what they should do and why they are needed? |
Beta Was this translation helpful? Give feedback.
-
@BANOnotIT description addded |
Beta Was this translation helpful? Give feedback.
-
Wouldn't it be better to have CacheAtom#invalidateParams instead of delete? |
Beta Was this translation helpful? Give feedback.
-
It should be additional feature, yes. |
Beta Was this translation helpful? Give feedback.
-
done b53fe98 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We need a way to set the cache manually. For example, we have an API which makes a
PUT
,POST
, or mutation call that returns new data which we can use without performing extra invalidation. The problem is thatcacheAtom
stores a complex data with some meta (CacheRecord
) by keys with a specific semantics. We need a user-friendly way to update the cache by passing just a key and a new data.WithParams
needed asMapAtom
already haveset
anddelete
methods.Beta Was this translation helpful? Give feedback.
All reactions