Update packages/svelte/src/internal/server/index.js

pull/13034/head
Simon H 2 years ago committed by GitHub
parent f19524fe03
commit 04854c9b59
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -101,8 +101,10 @@ export function render(component, options = {}) {
on_destroy = [];
payload.out += BLOCK_OPEN;
// prevent parent/child element state being corrupted by a bad render
reset_elements();
if (DEV) {
// prevent parent/child element state being corrupted by a bad render
reset_elements();
}
if (options.context) {
push();

Loading…
Cancel
Save