Skip to content

Reactivity regression since 5.0.0-next.177 #12435

@kran6a

Description

@kran6a

Describe the bug

Values returned from +page.ts load functions stopped being reactive on 5.0.0-next.177 and are still not reactive on 5.0.0-next.183.
In the reproduction I provide a minimal sveltekit app that prints values from an array returned from a load function.
On +page.svelte I add a value to the array every second, logging in the console the value of the item I am pushing into the array.

The example works "as intended" on 5.0.0-next.176. If you update the package.json to install a newer version, the reactivity will break and items appended to the array will never be rendered.

There is also no indication of a breaking reactivity change in the changelog.

Reproduction

https://github.com/kran6a/kit-reactivity-bug

Logs

No response

System Info

System:
    OS: Windows 11 10.0.22631
    CPU: (12) x64 AMD Ryzen 5 3600XT 6-Core Processor
    Memory: 18.70 GB / 63.93 GB
  Binaries:
    Node: 22.2.0 - C:\Program Files\nodejs\node.EXE
    npm: 10.7.0 - C:\Program Files\nodejs\npm.CMD
    pnpm: 9.5.0 - C:\Program Files\nodejs\pnpm.CMD
    bun: 1.1.20 - ~\.bun\bin\bun.EXE
  Browsers:
    Edge: Chromium (126.0.2592.102)
    Internet Explorer: 11.0.22621.3527

Severity

blocking an upgrade

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions