Open HcySunYang opened 3 years ago
Support matchBy, allow to specify the match target, there are two available values:
matchBy
'name'
'key'
key
Cache management, provide a new prop called cache, users can provide custom caching strategy.
cache
Add two new lifecycle hooks: onBeforeActivate and onBeforeDeactivate, and the corresponding options API beforeActivate and beforeDeactivate.
onBeforeActivate
onBeforeDeactivate
beforeActivate
beforeDeactivate
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!!!!!
Summary
Support
matchBy
, allow to specify the match target, there are two available values:'name'
: use component name to match.'key'
: use thekey
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
andonBeforeDeactivate
, and the corresponding options APIbeforeActivate
andbeforeDeactivate
.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.