Skip to content

Pass state problem in Svelte 5 #15194

@Enes5519

Description

@Enes5519

Describe the bug

I have doubts about whether the states are transferred correctly when using a library that I have in Svelte 4 in Svelte 5. While it works without any problems in Svelte 4, it does not work the same way in Svelte 5.

I prepared an app that changes the radio value every second. If you look at the links in reproduction, you can understand the problem exactly.

Reproduction

Svelte 4: https://stackblitz.com/edit/vitejs-vite-bqjij8vn?file=src%2FApp.svelte
Svelte 5: https://svelte.dev/playground/00f889e5d7f84dbbaba90c6014fb5606?version=5.19.6

Logs

System Info

System:
    OS: macOS 15.2
    CPU: (10) arm64 Apple M1 Pro
    Memory: 97.73 MB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.18.1 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.8.2 - /usr/local/bin/npm
    pnpm: 9.4.0 - /usr/local/bin/pnpm
    bun: 1.1.17 - ~/.bun/bin/bun
    Watchman: 2024.12.02.00 - /opt/homebrew/bin/watchman
  Browsers:
    Chrome: 132.0.6834.160
    Safari: 18.2
  npmPackages:
    @sveltejs/vite-plugin-svelte: ^4.0.0 => 4.0.4 
    svelte: ^5.0.0 => 5.19.1 
    vite: ^5.4.10 => 5.4.10

Severity

annoyance

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy