Skip to content
Discussion options

You must be logged in to vote

After much digging, I've found the code that was causing most of the detached nodes

      const stateFields = vanX.stateFields(PR)
      const skipFields = ['strokeSeed']
      Object.keys(stateFields).forEach(key => {
        if (skipFields.includes(key)) return
        van.derive(() => {
          // prnt(`${key} -> ${stateFields[key].val}`)
          const fake = stateFields[key].val
          PR.saveAppState()
        })
      })

I was trying to save this reactive object whenever any prop changed

Replies: 8 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Tao-VanJS
Comment options

Comment options

You must be logged in to vote
1 reply
@Tao-VanJS
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by Tao-VanJS
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants