Skip to content

Resolve #3377144 "Custom cache"

Closes #3377144

Tried to be generic as possible, but I'm not sure this will work by simply "dropping in" a cache but instead there may be some config to setup the API by wrapping a cache's getters and setters with an expected get and set method. It should allow extra methods and arguments to the required methods. Not sure this is the best way to do it but it's what seems to work!

I used sessionStorage for the cache in the example as Zustand doesn't work between refreshes without some more work. We can add an SSR/SPA example to showcase Zustand and/or other caching libraries if we want but it felt a bit out of scope for the moment.

Merge request reports

Loading