From a4c58cfa152e7edde670ed1a7734d28dc9caf805 Mon Sep 17 00:00:00 2001 From: josdejong Date: Sun, 3 May 2020 19:49:55 +0200 Subject: [PATCH] Calculate props only once instead of twice on creation --- src/JSONNode.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/JSONNode.svelte b/src/JSONNode.svelte index 0372d1c..ab72fe5 100644 --- a/src/JSONNode.svelte +++ b/src/JSONNode.svelte @@ -23,7 +23,7 @@ $: type = valueType (value) let prevValue = undefined - let props = updateProps(value) + let props = undefined $: if (value !== prevValue) { prevValue = value