Fix memos

This commit is contained in:
Andrew Kingston 2024-08-20 15:28:12 +01:00
parent 6aedaaee2a
commit aba38c02b9
No known key found for this signature in database
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(null)
const tryUpdateValue = newValue => {
const newJSON = JSON.stringify(newValue)