Calculate props only once instead of twice on creation
This commit is contained in:
parent
3a9a409fcb
commit
a4c58cfa15
|
@ -23,7 +23,7 @@
|
|||
$: type = valueType (value)
|
||||
|
||||
let prevValue = undefined
|
||||
let props = updateProps(value)
|
||||
let props = undefined
|
||||
|
||||
$: if (value !== prevValue) {
|
||||
prevValue = value
|
||||
|
|
Loading…
Reference in New Issue