- ReactQuery successfully caches requests between navigation
- Never caches, only false positives when component doesn’t unmount (in the example, navigating from
Todos/2causes one query as the first component never unmounts)
I’ve tried various combinations of interop (eg. only bindings, only raw, mixed) to see if that was the issue, but everything works correctly sans the cache. Identical code in regular typescript with react-router works fine. Looking at the docs of react router, it seems their implementation is similar in terms of navigation (
My primary use case for Rescript is to gradually adopt it into an existing code base that could use some 'Caml love. This app uses the caching mechanism pretty heavily.