Skip to content
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

Props contamination using #each and svelte:component #9306

Closed
BearToCode opened this issue Oct 10, 2023 · 3 comments
Closed

Props contamination using #each and svelte:component #9306

BearToCode opened this issue Oct 10, 2023 · 3 comments

Comments

@BearToCode
Copy link

BearToCode commented Oct 10, 2023

Describe the bug

Mixing #each and svelte:component causes props contamination on versions >= 4.1.0 when #each block is re-evaluated. Link to the REPL

Reproduction

https://svelte.dev/repl/d726672633d548db8ebb15d3b084df36?version=4.2.1

Logs

No response

System Info

REPL@4.2.1

Severity

annoyance

@BearToCode
Copy link
Author

BearToCode commented Oct 10, 2023

I've tried changing the Svelte version (from 4.2.1), here are the results:
<=4.0.5 -> Works flawlessly
4.1.0 -> Leaked key-value prop
>=4.1.2 -> Leaked key, undefined value

Probably related to #9003

@PatrickG
Copy link
Member

Duplicate of #9177.
Introduced by #9006 which fixed #9003

@BearToCode
Copy link
Author

BearToCode commented Oct 10, 2023

Right didn't see that!

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