We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d634ca7 commit 8287624Copy full SHA for 8287624
packages/core/src/render3/hmr.ts
@@ -116,6 +116,11 @@ function mergeWithExistingDefinition(
116
// Preserve the old `setInput` function, because it has some state.
117
// This is fine, because the component instance is preserved as well.
118
setInput: clone.setInput,
119
+
120
+ // Externally this is redundant since we redeclare the definition using the original type.
121
+ // Internally we may receive a definition with an alternate, but identical, type so we have
122
+ // to ensure that the original one is preserved.
123
+ type: clone.type,
124
});
125
126
ngDevMode && assertEqual(replacement, currentDef, 'Expected definition to be merged in place');
0 commit comments