Skip to content

Server data not reactive anymore in runes mode #12568

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

Open
Rafterman1217 opened this issue Aug 9, 2024 · 1 comment
Open

Server data not reactive anymore in runes mode #12568

Rafterman1217 opened this issue Aug 9, 2024 · 1 comment
Labels

Comments

@Rafterman1217
Copy link

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

@hyunbinseo
Copy link
Contributor

Regarding the system info, simply replace npx with pnpm dlx command.

pnpm dlx envinfo --system --binaries --browsers --npmPackages "{svelte,@sveltejs/*,vite}"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants