@sveltesociety.dev @svelte.dev is this the best way to handle a successful form action that redirects? page.server.ts: redirect(303, `/admin/users/{$userId}?success=true`); I want to show a success message after redirect. Would be nice to not use a URL param.
Post
So you need to show the flashcard even when JS has not loaded yet? Otherwise you can just pass a function to `use:enhance` return a function from it and show the flashcard when the result is actually `redirect` Here's a simple example www.sveltelab.dev/tiq4hftztcj4...
sveltelab.devSvelteLabA REPL for SvelteKit projects: quickly spin up a SvelteKit project and share it with the world.
No replies yet.