rfcs
rfcs copied to clipboard
Custom cache strategy and matching rules for KeepAlive
Summary
-
Support
matchBy, allow to specify the match target, there are two available values:'name': use component name to match.'key': use thekeyof the component to match.
-
Cache management, provide a new prop called
cache, users can provide custom caching strategy. -
Add two new lifecycle hooks:
onBeforeActivateandonBeforeDeactivate, and the corresponding options APIbeforeActivateandbeforeDeactivate.
Links
Important: Do NOT comment on this PR. Please use the discussion thread linked above to provide feedback, as it provides branched discussions that are easier to follow. This also makes the edit history of the PR clearer.
I need this so much!!!!!