Skip to content

Assignment to array items inside each blocks does not invalidate the array. #3411

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

Closed
pngwn opened this issue Aug 15, 2019 · 4 comments
Closed

Comments

@pngwn
Copy link
Member

pngwn commented Aug 15, 2019

Describe the bug
When performed inside an inline function with curly braces, assignments to array items inside each blocks do not correctly invalidate the array but instead invalidate the array item.

To Reproduce
REPL

On removing the curly braces, Svelte will correctly invalidate the array.

Expected behaviour
The array should be updated, invalidated.

Severity

There are workarounds, it isn't the worst thing that has ever happened in the world.

@pngwn
Copy link
Member Author

pngwn commented Aug 15, 2019

Dupe.

@pngwn pngwn closed this as completed Aug 15, 2019
@nodefish
Copy link

I can't find the issue this is supposedly a dupe of. Could you point me to it please? Thanks.

@pngwn
Copy link
Member Author

pngwn commented Sep 24, 2019

It was #3217, I think.

@nodefish
Copy link

Thanks! I am encountering this issue so I suspect it has actually not been fixed for some scenarios. I will comment in that thread.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants