Skip to content

Commit 9b6d41b

Browse files
committed
fix
1 parent 45f6c11 commit 9b6d41b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/svelte/src/internal/client/render.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2317,10 +2317,10 @@ export function action(dom, action, value_fn) {
23172317
untrack(() => {
23182318
if (payload === undefined) {
23192319
payload = action(dom, value) || {};
2320+
needs_deep_read = !!payload?.update;
23202321
} else {
23212322
const update = payload.update;
23222323
if (typeof update === 'function') {
2323-
needs_deep_read = true;
23242324
update(value);
23252325
}
23262326
}

0 commit comments

Comments
 (0)