Skip to content

Server data not reactive anymore in runes mode #12568

@Rafterman1217

Description

@Rafterman1217

Describe the bug

In runes mode

let {data} = $props()

returns data which is not bindable to eg. input elements etc.
afaik this worked before and its also working when using 'let mode'

Reproduction

import type { PageServerLoad } from './$types';

export const load = (async ({params}) => {
    return {name: params.name};
}) satisfies PageServerLoad;
<script lang="ts">
    let {data} = $props()

</script>

<p>{data.name}</p>
<input type="text" bind:value={data.name} />

Logs

No response

System Info

I dont get output since I'm using pnpm, help appreciated

Severity

annoyance

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions