* Removes any cached renderers from the factory for the provided type. * This is currently used by the HMR logic to ensure Renderers are kept * synchronized with any definition metadata updates. * @param factory A RendererFactory2 instance. * @param def A ComponentDef instance.
(factory: RendererFactory, def: ComponentDef<unknown>)
| 210 | * @param def A ComponentDef instance. |
| 211 | */ |
| 212 | function clearRendererCache(factory: RendererFactory, def: ComponentDef<unknown>) { |
| 213 | // Cast to read a private field. |
| 214 | // NOTE: This must be kept synchronized with the renderer factory implementation in |
| 215 | // platform-browser and platform-browser/animations. |
| 216 | (factory as {componentReplaced?: (id: string) => void}).componentReplaced?.(def.id); |
| 217 | } |
| 218 | |
| 219 | /** |
| 220 | * Recreates an LView in-place from a new component definition. |
no test coverage detected
searching dependent graphs…