ITADN

I got the warnning `state_referenced_locally` when using `superForm`

#667Openjijiseong 创建于 2025-12-08
documentation
J
jijiseongcommented
- [ ] Before posting an issue, read the [FAQ](https://superforms.rocks/faq) and search the previous issues. **Description** A clear and concise description of what the bug is, and, unless obvious, what you expected instead. ```svelte <script lang="ts"> import type { PageData } from "./$types"; type Props = { data: PageData; }; let { data }: Props = $props(); const form = superForm(data.form, { validators: zod4Client(recommendSchema) }); </script> ``` <img width="881" height="369" alt="Image" src="https://github.com/user-attachments/assets/9f9545da-3861-4238-97b1-306df0582a7a" /> how resolve this warnning? Is it superForm internal error? **If applicable, a MRE** Use this template project to create a minimal reproducible example that you can link to here: https://sveltelab.dev/github.com/ciscoheat/superforms-examples/tree/zod (right click to open in a new tab)
2 条评论