From fcbd2ba2cc1149352416e028d4216c2dff01d760 Mon Sep 17 00:00:00 2001 From: Andreas Tzionis Date: Sat, 4 Nov 2023 20:11:22 +0200 Subject: [PATCH] fixed notes --- lib/client/vanilla/index.jsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/client/vanilla/index.jsx b/lib/client/vanilla/index.jsx index 68c2b8f5..3dea73e0 100644 --- a/lib/client/vanilla/index.jsx +++ b/lib/client/vanilla/index.jsx @@ -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