-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nested updates are not picked up by each blocks #10827
Comments
Please provide a proper minimum reproduction, the link has way too much side stuff going on. |
alright will get a stackblitz going |
hey so it looks like its because the updates were done inside of async functions (both reactive assignments and store updates break)? if I were to make the functions themselves sync but perform the updates within a promise I get the same result but if the functions are sync (just commenting out the call to and the result is: stackblitz: https://stackblitz.com/edit/svelte-bugs-10829-10828-10827?file=src%2FApp.svelte |
The only error I see is that when both |
i mean is it expected behaviour that store updates and reactive assignments do not work when things are async? so in the stackblitz:
yea sorry, when it first came up in the test project and when I was creating the stackblitz i thought it was 3 different issues but it could just be because of async |
Another error that I didn't mention because I thought it was obvious, especially after looking at the browser's console and seeing there |
your example isn't equal to the project's code. The correct example is const x = () => { hello(); }; x(); const hello = () => console.log("hi!!"); The
It's not SvelteKit, so the code isn't running on the server. So, just raise the definition of And for your information, if an error is thrown during the lifecycle (component initiation, rendering, processing the reactivity and so on), the entire Svelte app just stops because the app may have an impossible/out-of-sync state and it's unclear what to do in this case and still no API to resolve such cases. |
that's my bad oops, sorry for being so haphazard, things are working now but I have no idea why the same is not happening in the application will close the issues ive opened and dig into the issue more |
Describe the bug
In an array of objects stored in a store, if a field in the object is updated and the array reference changes, each blocks do not rerender
Reproduction
see: https://github.com/nmathew98/qwery/blob/dev/packages/example-svelte/src/Thread.svelte#L256
Logs
System Info
Severity
blocking all usage of svelte
The text was updated successfully, but these errors were encountered: