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

Update being skipped in slot #11678

Closed
AaronAtP123 opened this issue May 17, 2024 · 2 comments
Closed

Update being skipped in slot #11678

AaronAtP123 opened this issue May 17, 2024 · 2 comments

Comments

@AaronAtP123
Copy link

Describe the bug

Some variable assignments in reactive blocks are causing some updates not to be rendered

Reproduction

https://svelte.dev/repl/5114b7068716419d9ff825e7ef762c77

The linked REPL has component App which increments variable a, containing <Comp1 {a} bind:b>, and Comp1 pushes changes back to b via $: b = a;'.

Expected behavior: The page should always show the same number 3 times.
Actual behavior: The first number remains 0, and the other two update properly.

Logs

No response

System Info

System:
  OS: Windows 10 10.0.19045
  CPU: (16) x64 Intel(R) Xeon(R) CPU E5-2680 v4 @ 2.40GHz
  Memory: 5.19 GB / 13.62 GB
Binaries:
  Node: 18.12.1 - C:\Program Files\nodejs\node.EXE       
  npm: 8.19.2 - C:\Program Files\nodejs\npm.CMD
Browsers:
  Edge: Chromium (124.0.2478.105)
  Internet Explorer: 11.0.19041.4355
npmPackages:
  rollup: ^4.9.6 => 4.14.0
  svelte: ^4.2.9 => 4.2.12

Severity

annoyance

@7nik
Copy link

7nik commented May 17, 2024

I believe it's a duplicate of #7913 and non-fixable in Svelte 3/4.

@dummdidumm
Copy link
Member

That's correct. It works in Svelte 5, therefore closing.

@dummdidumm dummdidumm closed this as not planned Won't fix, can't repro, duplicate, stale May 28, 2024
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

3 participants