Content pfp
Content
@
0 reply
0 recast
0 reaction

taranis pfp
taranis
@taranis.eth
One of the more challenging things in JS is managing state. Libraries like redux, react context, xstate, react-query, etc. help with this. How do you manage state in your frontend application? And especially for web3 frontends what is a good way to implement caching and cache invalidation?
1 reply
0 recast
1 reaction

Darryl Yeo đŸ› ïž pfp
Darryl Yeo đŸ› ïž
@darrylyeo
Highly recommend Tanstack Query for caching and invalidation! I use it extensively in my Svelte applications in addition to Svelte’s built-in observable stores (which can be imported and shared across the entire app). It’s also what wagmi for React uses under the hood. https://tanstack.com/query/latest
1 reply
0 recast
1 reaction