From be9d7634105da786160d988a8b1529e3cbc15f11 Mon Sep 17 00:00:00 2001 From: Michael Sanford Date: Sun, 3 May 2020 19:47:47 -0400 Subject: [PATCH] docs(components/cdk/scrolling): add note about view recycling with dynamic components Added a clearer note about the behaviour of view recycling in cdk-virtual-scroll-viewport containers when rendering dynamic components. Fixes #15838 --- src/cdk/scrolling/scrolling.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cdk/scrolling/scrolling.md b/src/cdk/scrolling/scrolling.md index 1ddf16cc06c9..93643416bb92 100644 --- a/src/cdk/scrolling/scrolling.md +++ b/src/cdk/scrolling/scrolling.md @@ -56,6 +56,9 @@ is reused instead. The size of the view cache can be adjusted via the `templateC property; setting this size to `0` disables caching. If your templates are expensive in terms of memory you may wish to reduce this number to avoid spending too much memory on the template cache. +Recycled components within the `` preserve state like bound parameter values. +When rendering dynamic components, you may want to disable caching completely. + ##### Specifying data