raphaelameaume / fragment

[alpha] A web development environment for creative coding
https://fragment.tools
MIT License
828 stars 19 forks source link

Move sketches subscription in Init to avoid deduping #99

Closed raphaelameaume closed 7 months ago

raphaelameaume commented 7 months ago

This fixes errors on props reconciliation by ensuring reconciliation only happens once and not multiple times because of the deduped subscription to sketches stores. The subscription is moved to Init.svelte which ensures the subscription is only done once and not hot reloaded.