rfcs icon indicating copy to clipboard operation
rfcs copied to clipboard

Custom cache strategy and matching rules for KeepAlive

Open HcySunYang opened this issue 4 years ago • 1 comments

Summary

  • Support matchBy, allow to specify the match target, there are two available values:

    • 'name': use component name to match.
    • 'key': use the key of the component to match.
  • Cache management, provide a new prop called cache, users can provide custom caching strategy.

  • Add two new lifecycle hooks: onBeforeActivate and onBeforeDeactivate, and the corresponding options API beforeActivate and beforeDeactivate.

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.

HcySunYang avatar Mar 16 '21 08:03 HcySunYang

I need this so much!!!!!

share-man-man avatar Apr 23 '21 09:04 share-man-man