vue
vue copied to clipboard
keep-alive: include/exclude components by component key attribute
What problem does this feature solve?
The include and exclude props allow components to be conditionally cached only by component name. If we want to reuse components but force replacement using the key
attribute, there is no control over which components we want to keep-alive only matching components by their name.
What does the proposed API look like?
https://jsfiddle.net/9nk92wuy/