Skip to content

Commit

Permalink
fixed notes
Browse files Browse the repository at this point in the history
  • Loading branch information
LiveDuo committed Nov 4, 2023
1 parent 3f9dd6d commit fcbd2ba
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/client/vanilla/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,16 @@ function ContentProvider() {
const _components = await fetch(url).then((r) => r.json())

setComponents(_components)

// TODO load page from served
}

// TODO should not register the listener twice
const onDomChange = () => {
canvasRef.current
const config = { attributes: true, childList: true, subtree: true }
const observer = new MutationObserver(() => {
console.log('dom changed')
// TODO save to server
// TODO save page to server
})
observer.observe(canvasRef.current, config)
return observer
Expand Down

0 comments on commit fcbd2ba

Please sign in to comment.