Replies: 2 comments 1 reply
-
Importing a server file on the client is not a good idea, though SvelteKit could generate a separate file as with the types, e.g. import { actions } from './$actions'; (Also, wrong repository.) |
Beta Was this translation helpful? Give feedback.
0 replies
-
Oh, true. I don't want to import the action, I'd like to have the path automatically resolved and then call it. I'll close it here and move it over to Sveltekit |
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.
-
It would be nice if we can borrow the action handling from Astro.
Instead of
I'd like to do
The main reason is, I use forms a lot and sometimes I don't really remember the path or I have the form in multiple locations (overlays, ...), or I refactor sth and then it's a mess to get the correct path.
I also think type-safety would improve, because everything is a bit more coupled.
Beta Was this translation helpful? Give feedback.
All reactions