Merge pull request #14419 from Budibase/cheeks-fixes
Tiny fix for memo stores
This commit is contained in:
commit
256f177fd5
|
@ -4,7 +4,7 @@ import { writable, get, derived } from "svelte/store"
|
|||
// subscribed children will only fire when a new value is actually set
|
||||
export const memo = initialValue => {
|
||||
const store = writable(initialValue)
|
||||
let currentJSON = null
|
||||
let currentJSON = JSON.stringify(initialValue)
|
||||
|
||||
const tryUpdateValue = newValue => {
|
||||
const newJSON = JSON.stringify(newValue)
|
||||
|
|
Loading…
Reference in New Issue