Merge pull request #14419 from Budibase/cheeks-fixes

Tiny fix for memo stores
This commit is contained in:
Andrew Kingston 2024-08-20 15:30:56 +01:00 committed by GitHub
commit 256f177fd5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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)