Skip to content

Commit e7c93b8

Browse files
committed
fix: don't remove data
1 parent 87fb9e7 commit e7c93b8

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/hmr.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ export function hmrModule(MODULE_REF: any, MODULE: any, CONFIG = MODULE_CONFIG)
1313
if (MODULE_REF.instance[MODULE_CONFIG['OnInit']]) {
1414
if (MODULE['hot']['data']) {
1515
MODULE_REF.instance[MODULE_CONFIG['OnInit']](MODULE['hot']['data']);
16-
Object.keys(MODULE['hot']['data']).forEach((key) => {
17-
MODULE['hot']['data'][key] = null;
18-
});
1916
}
2017
}
2118
if (MODULE_REF.instance[MODULE_CONFIG['OnStatus']]) {

0 commit comments

Comments
 (0)