Need Library For Caching Data

I'm looking for a library that I can use to cache user data. I'm building a messaging app so I want to cache the most recent messages of the few most recently messaged conversations as well as the conversation list. This should help smooth out the operation of the app however I'm not sure exactly what library I should use for this. Any suggestions?

11 comments · 75% upvoted · other discussions

comments

Puzzleheaded-Sail-90

If you are using Redux, why don't you persist the required state?!

No-Question-3229 [OP]

I am not using redux

nicolasdanelon

Don't use it. Holy cow redux === tons of boilerplate

WideImpress6128

If you use redux + redux-toolkit I think It’s pretty good

nicolasdanelon

Check the zustand docs. No way redux toolkit can beat zustand haha. Even mobx is simpler

Puzzleheaded-Sail-90

Then i guess you can try the suggestion suggested by @nicolasdanelon