Previously, layout and ref nodes were not added reactively, so the scenegraph wouldn't update if it was changed. This PR puts the layout node and ref creations in createRenderEffects.
Note: createEffect doesn't work b/c the first run of createEffect happens after the DOM has rendered, which is too late. createRenderEffect executes more eagerly on first run.
Previously, layout and ref nodes were not added reactively, so the scenegraph wouldn't update if it was changed. This PR puts the layout node and ref creations in
createRenderEffect
s.Note:
createEffect
doesn't work b/c the first run ofcreateEffect
happens after the DOM has rendered, which is too late.createRenderEffect
executes more eagerly on first run.