We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fda3380 commit c73f099Copy full SHA for c73f099
packages/svelte/src/internal/client/dom/legacy/lifecycle.js
@@ -22,6 +22,9 @@ export function init() {
22
pre_effect(() => {
23
observe_all(context);
24
callbacks.b.forEach(run);
25
+ // beforeUpdate might change state that affects rendering, ensure the render effects following from it
26
+ // are batched up with the current run. Avoids for example child components rerunning when they're
27
+ // now hidden because beforeUpdate did set an if block to false.
28
flush_local_render_effects();
29
});
30
}
0 commit comments