About the max attribute of keep-alive component

This issue has been created since 2022-08-29.

Version

2.7.10

Reproduction link

codesandbox.io

Steps to reproduce

  1. Select 111 tab, switch to 222 tab
  2. Repeat the above operation to the 444 tab, switch max to a value such as 1, 2, 3, all caches exist

What is expected?

When the value of the max attribute is less than the number of components currently cached, it is necessary to prune and remove the redundant cache

What is actually happening?

All the caches exist, and the memory is not the max number of caches, but the number controlled by the previous value, only the first one before is eliminated


When the max attribute of the keep-alive component is changed to a value smaller than the previous limit, the previous cache is still retained. When a new cache component comes in, the max attribute is in effect, but it only determines that the limit is exceeded, and The first cache component is deleted, so that there is still the last max number of caches in memory. I think this may be wrong.

I want to dynamically control through the max attribute, the amount I want to cache

max

More Details About Repo
Owner Name vuejs
Repo Name vue
Full Name vuejs/vue
Language TypeScript
Created Date 2013-07-29
Updated Date 2022-09-27
Star Count 199644
Watcher Count 6098
Fork Count 32848
Issue Count 587

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
[Bug] List acts as ghost section heading 5 2022-07-04 2022-09-19
Macro feature not working 2 2022-07-13 2022-09-07
Allow hyprctl to move/resize windows to specific values (not delta) for floating windows 2 2022-06-09 2022-09-07
Is it possible to add Airpods Pro icon? 4 2020-09-28 2022-08-08
Custom Icon request [name icon] 1 2022-01-02 2022-07-09
Make sure that this logger's configuration is safe. 1 2021-04-03 2022-09-14
Control module output width 2 2020-08-28 2022-09-06
DELETE request didn't send the body to server 4 2018-10-30 2022-09-12
Broken link for object detection installation and dataset preparation. 1 2022-01-27 2022-09-17
Requests for new tutorials: OO.jl and ParameterizedModule.jl 1 2019-02-09 2022-09-12
Question: Why the double vector in Event handler data? 2 2021-11-05 2022-07-13
[Bug] Segfault on Spectral mixture GP regression test (MacOS) 12 2021-11-07 2022-08-18
Teleport on lose - next step 5 2022-08-30 2022-09-26
180 degrees partial panorama 1 2021-05-31 2022-09-03
Panel intellihide: Hidden when no windows are present, but shown when there are 1 2022-01-11 2022-07-29
[Feature] vlink support 0 2021-11-28 2021-12-05
s3 endpoint for SmartStore 6 2022-06-10 2022-09-23
[Checkbox] Checkbox的value类型,应该包含boolean 1 2022-05-31 2022-08-15
Plans to release a 2.1.4? 1 2021-10-30 2022-09-02
Issue with rack session in sinatra 1 2021-08-16 2022-09-12
Review Updated Personas 1 2021-02-24 2022-07-25
What action should I take when projects don't have matching metadata references? 9 2021-04-14 2022-09-17
Typo in error message 0 2022-04-07 2022-09-23
Error running `npx create-tailwind-rn` 1 2021-07-25 2022-09-25
Snowflake dialect: ALTER TABLE ADD COLUMN statements do not parse if multiple columns specified 3 2022-01-28 2022-09-21
Include way of listing all available tables 0 2021-11-01 2022-08-01
Incorrect display of temperature in the Heat Graph of the Fission Reactor 1 2021-07-30 2022-09-11
swoole中在onWorkerStart()函数中定时器连接远程redis的问题 1 2021-08-25 2022-08-16
Browser integration does not work with keepassxc snap package on Debian buster 16 2020-02-20 2022-09-21
zh install document mistake 0 2022-01-05 2022-08-26
Support UpdatePolicy.ALL for RealmList.add 1 2022-05-26 2022-09-05
Critical Alerts not working 4 2021-09-30 2022-09-23
Selection of port lost on upload when protocol other than `serial`/`network` and no "recognized" board 4 2022-08-30 2022-09-17
Document how to access the advanced settings 0 2022-08-30 2022-09-17
Animation won't work when the container is set to position sticky 1 2021-05-08 2022-09-09
Adapt builds to delete days at eclipse 2 2021-11-18 2022-09-12
App crashed on requesting Permission.requestInstallPackages 2 2022-07-08 2022-09-12
`Exact` intersection type support 7 2022-07-07 2022-09-15
Problem about the pretrained warmup model in "SYNTHIA -> Cityscapes" 1 2021-06-22 2022-09-18
Java 8 version of the datatypes maven artifact 1 2022-02-17 2022-08-13
ERC-721 compliant `payable` functions 0 2022-09-13 2022-09-19
constants replaced before folding is finished 0 2022-09-13 2022-09-19
[QST] A100 double-precision Tensor Cores ? 4 2022-06-21 2022-09-15
Importing `rustc_driver` interferes with `rustc_codegen_llvm` items and leads to a linking error 3 2022-09-20 2022-09-14
Neo4j Stream plugin (Source) error when hyphen character in relationship name 0 2021-09-01 2022-08-21
Child spans don't keep their parent's service and resource values 1 2022-08-02 2022-09-01
RejectedExecutionException Occured in onMessage. 5 2016-03-30 2022-09-19
ModelCacheImpl should not Class.forName(..) 1 2021-02-25 2022-09-20
DetermineLocale() doesn't check LC_MESSAGES to select the output language 1 2022-03-31 2022-08-22
Blazor cookie authentication OpenShift 1 2022-04-14 2022-09-16