Progressive Form use:enhance #1803
Unanswered
brnkgabriel
asked this question in
Help
Replies: 1 comment 1 reply
-
Thank you for the alternative import, I had the same issue. Did you end up figuring this out? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Change Type
Addition
Proposed Changes
Hi @huntabyte
Thanks for porting shadcn to svelte.
In the form documentation, it is possible to obtain enhance from the code below by destructuring the form object
It is equally possible to obtain the enhance from sveltekit $app/forms:
import { enhance } from '$app/forms';
The enhance from form destructuring didn't always work, which made me use the one from sveltekit. Not sure, and still don't know why it doesn't always work. However the one from sveltekit always works.
What could be the problem?
Beta Was this translation helpful? Give feedback.
All reactions