bluefishjs / bluefish-archive

A SolidJS diagramming framework
https://bluefishjs.org
MIT License
75 stars 4 forks source link

fix: #41 #42

Closed joshpoll closed 11 months ago

joshpoll commented 11 months ago

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.