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
Is your feature request related to a problem? Please describe.
I think that my case is very common. Therefore I couldn't create a clean solution without library extension and/or excessive complexity.
I have two screens:
Posts list. I fetch List<Post> here.
Post details list. It's opened after the post item on the previous screen is clicked. It has the same data type Post.
My goal is to be able to receive an exact Post by its UUID (String) from the store.
Describe the solution you'd like
I'd like to be able to add an entry to the cache without making network requests.
In my particular case I see the following block of code:
Perhaps there is already another solution that I don't see?
Describe alternatives you've considered
I could create SourceOfTruth based on Map. It seems weird to have a Store with cache functionality and then disable, and implement own cache just it in order to have just put logic.
I could create any database for persisting List but it seems too complex because there's no point in persistence in my particular case because data changes frequently.
P.S. I've tried to implement this logic in 5.0.0-alpha04.
The text was updated successfully, but these errors were encountered:
alaegin
changed the title
[Feature Request] An ability to add entry to the cache
[Feature Request] An ability to add entry to the cache manually
Mar 12, 2023
Hello!
Is your feature request related to a problem? Please describe.
I think that my case is very common. Therefore I couldn't create a clean solution without library extension and/or excessive complexity.
I have two screens:
List<Post>
here.Post
.My goal is to be able to receive an exact
Post
by its UUID (String) from the store.Describe the solution you'd like
I'd like to be able to add an entry to the cache without making network requests.
In my particular case I see the following block of code:
Perhaps there is already another solution that I don't see?
Describe alternatives you've considered
put
logic.P.S. I've tried to implement this logic in 5.0.0-alpha04.
The text was updated successfully, but these errors were encountered: