Calculate props only once instead of twice on creation

This commit is contained in:
josdejong 2020-05-03 19:49:55 +02:00
parent 3a9a409fcb
commit a4c58cfa15
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@
$: type = valueType (value) $: type = valueType (value)
let prevValue = undefined let prevValue = undefined
let props = updateProps(value) let props = undefined
$: if (value !== prevValue) { $: if (value !== prevValue) {
prevValue = value prevValue = value