atlassian-labs / react-resource-router

Configuration driven routing solution for React SPAs that manages route matching, data fetching and progressive rendering
https://atlassian-labs.github.io/react-resource-router
Apache License 2.0
202 stars 28 forks source link

Prefetching triggers refresh of expired resources #176

Closed albertogasparin closed 1 year ago

albertogasparin commented 1 year ago

When using prefetch on links, if the resource is expired, it will trigger a refresh causing a re-render and possibly back to skeleton. Instead, it should not override values in the resource cache yet while prefetching, but use a separate cache and then we should get the value from it on actual transition.