Skip to content

Svelte 5: $inspect not firing when $effect does #11586

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
Hugos68 opened this issue May 13, 2024 · 3 comments
Closed

Svelte 5: $inspect not firing when $effect does #11586

Hugos68 opened this issue May 13, 2024 · 3 comments
Assignees

Comments

@Hugos68
Copy link
Contributor

Hugos68 commented May 13, 2024

Describe the bug

$inspect unexpectedly does not fire when $effect with the same dep does.

Reproduction

Here is a repo for reproduction: https://github.com/Hugos68/svelte-131-inspect-bug
Steps are inside the README

What's peculiar is that it fires as expected in the online REPL

Logs

Browser logs Chromium (123.0.2420.97)

[vite] connecting...
client.ts:175 [vite] connected.
useRole.svelte.js:5 effect open: false
useRole.svelte.js:5 effect open: true

System Info

System:
    OS: Windows 11 10.0.22631
    CPU: (12) x64 AMD Ryzen 5 5600 6-Core Processor
    Memory: 22.57 GB / 31.93 GB
  Binaries:
    Node: 20.11.0 - C:\Program Files\nodejs\node.EXE
    npm: 10.2.4 - C:\Program Files\nodejs\npm.CMD
    pnpm: 9.1.0 - ~\AppData\Local\pnpm\pnpm.CMD
  Browsers:
    Edge: Chromium (123.0.2420.97)
    Internet Explorer: 11.0.22621.1
  npmPackages:
    svelte: ^5.0.0-next.1 => 5.0.0-next.131

Severity

annoyance

@brunnerh
Copy link
Member

For context: This does not reproduce in the REPL

@Hugos68
Copy link
Contributor Author

Hugos68 commented May 13, 2024

For context: This does not reproduce in the REPL

I've added it 👍

@trueadm trueadm self-assigned this May 14, 2024
@trueadm
Copy link
Contributor

trueadm commented May 14, 2024

It's related to vite-plugin-svelte so closing this. sveltejs/vite-plugin-svelte#906

@trueadm trueadm closed this as completed May 14, 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