Open theKashey opened 11 months ago
Inside RRR there are two logics that are fighting with each other a little bit:
Questions
there is a comment that we "need" to clean resourced during transition https://github.com/atlassian-labs/react-resource-router/blob/b0e55faeafdc6f193e5fda338e5533e6f88725cf/src/resources/controllers/resource-store/index.tsx#L427C1-L431C25
there is a logic that can reuse previous response while the new one is loading
refresh
if one removes cleanExpiredResources
cleanExpiredResources
Proposal - add explicit stateWhileInvalidate flag for resource and exempt them from cleanExpiredResources giving control to the end user.
stateWhileInvalidate
resource
Inside RRR there are two logics that are fighting with each other a little bit:
Questions
there is a comment that we "need" to clean resourced during transition https://github.com/atlassian-labs/react-resource-router/blob/b0e55faeafdc6f193e5fda338e5533e6f88725cf/src/resources/controllers/resource-store/index.tsx#L427C1-L431C25
there is a logic that can reuse previous response while the new one is loading
refresh
works. More likely intentional.if one removes
cleanExpiredResources
Proposal - add explicit
stateWhileInvalidate
flag forresource
and exempt them fromcleanExpiredResources
giving control to the end user.