From 14080636eb35e817c5e2d6c1e03f2a7385d41fc7 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Sun, 6 Aug 2017 16:11:26 -0400 Subject: [PATCH] destroy _windowTransitionManager when creating fresh components - fixes #121 --- universal/routes/Repl/Viewer.html | 1 + 1 file changed, 1 insertion(+) diff --git a/universal/routes/Repl/Viewer.html b/universal/routes/Repl/Viewer.html index ac9dee7a5..daaab6696 100644 --- a/universal/routes/Repl/Viewer.html +++ b/universal/routes/Repl/Viewer.html @@ -214,6 +214,7 @@ try { evalInIframe( `${bundle.code} document.body.innerHTML = ''; + window._svelteTransitionManager = null; var component = new SvelteComponent({ target: document.body, data: ${JSON.stringify(data)}