Skip to content

Commit d296b49

Browse files
committed
fix @!hmr not live updating
1 parent 04a9725 commit d296b49

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

runtime/svelte-hooks.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ export const createProxiedComponent = (
8585
const props = Object.assign({}, options.props)
8686
if (!noPreserveState && restore.state) {
8787
props.$$inject = restore.state
88+
} else {
89+
delete props.$$inject
8890
}
8991
options = Object.assign({}, initialOptions, { target, anchor, props })
9092
}

0 commit comments

Comments
 (0)