You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if you have svelte:self, bind to an object and use computed to update it or trigger render updates, svelte gets stuck in an endless loop or the rendering is blocked. ( see repository https://github.com/QuickMick/svelte-bind-computed-bug )
if you outsource this code to a function, behaviour changes: the rendering continues, but i think it still has kind of a memory leak and does a lot of stuff in the background.
This behavior has started in svelte v3.2.1. If you downgrade the svelte version in the package.json to e.g. v3.0.0, it works fine.
Reproduction
see here https://github.com/QuickMick/svelte-bind-computed-bug
there are two versions - you need to change something in the comp.svelte - one that crashes and one that does not crash but seems laggy to me. (the computed is called twice instead of once - in the example i use a recursive structure, because that is how i noticed the behavior change, but i think it is not necessary ) - uncomment version 1 and comment version 2 in comp.svelte
The text was updated successfully, but these errors were encountered:
QuickMick
changed the title
computed properties buggy in recursive structure - bug sind v3.2.1?
computed properties buggy in recursive structure - bug since v3.2.1?
Feb 15, 2022
QuickMick
changed the title
computed properties buggy in recursive structure - bug since v3.2.1?
bind and computed bug since v3.2.1 [with example repo]
Feb 16, 2022
Describe the bug
if you have svelte:self, bind to an object and use computed to update it or trigger render updates, svelte gets stuck in an endless loop or the rendering is blocked. ( see repository https://github.com/QuickMick/svelte-bind-computed-bug )
if you outsource this code to a function, behaviour changes: the rendering continues, but i think it still has kind of a memory leak and does a lot of stuff in the background.
This behavior has started in svelte v3.2.1. If you downgrade the svelte version in the package.json to e.g. v3.0.0, it works fine.
Reproduction
see here https://github.com/QuickMick/svelte-bind-computed-bug
there are two versions - you need to change something in the comp.svelte - one that crashes and one that does not crash but seems laggy to me. (the computed is called twice instead of once - in the example i use a recursive structure, because that is how i noticed the behavior change, but i think it is not necessary ) - uncomment version 1 and comment version 2 in comp.svelte
Logs
No response
System Info
Severity
blocking an upgrade
The text was updated successfully, but these errors were encountered: