File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 99- Always use `search-docs` to check wayfinder correct usage before implementing any features.
1010- Always Prefer named imports for tree-shaking (e.g., `import { show } from '@/actions/...'`)
1111- Avoid default controller imports (prevents tree-shaking)
12- - Run `wayfinder:generate` after route changes if Vite plugin isn't installed
12+ - Run `php artisan wayfinder:generate` after route changes if Vite plugin isn't installed
1313
1414### Feature Overview
1515- Form Support: Use `.form()` with `--with-form` flag for HTML form attributes — `<form {...store.form()} >` → `action="/posts" method="post"`
6565@endif
6666@else
6767If your application uses the `useForm` component from Inertia, you can directly submit to the wayfinder generated functions.
68-
68+
6969<code-snippet name =" Wayfinder useForm Example" lang =" typescript" >
7070 import { store } from "@/actions/App/Http/Controllers/ExampleController";
7171
You can’t perform that action at this time.
0 commit comments