Skip to content

Commit dab9d83

Browse files
committed
disable hydration when reloading a proxied component
1 parent 04d581a commit dab9d83

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

runtime/svelte-hooks.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,12 @@ export const createProxiedComponent = (
124124
} else {
125125
delete props.$$inject
126126
}
127-
options = Object.assign({}, initialOptions, { target, anchor, props })
127+
options = Object.assign({}, initialOptions, {
128+
target,
129+
anchor,
130+
props,
131+
hydrate: false,
132+
})
128133
}
129134

130135
const instrument = targetCmp => {

0 commit comments

Comments
 (0)