CodingGarden / listd

listd is a Full Stack App that will allow users to create, share and watch lists of YouTube channels. This app is being built LIVE on Twitch https://twitch.tv/codinggarden
https://twitch.tv/codinggarden
MIT License
190 stars 53 forks source link

add use:enhance on create form #99

Closed omar2205 closed 1 year ago

omar2205 commented 1 year ago

Update the create list form to use "Progressive enhancement"

It stops the page reload, and when the form submission is successful it doesn't refresh; it just redirects.

ref: https://kit.svelte.dev/docs/form-actions#progressive-enhancement-use-enhance

What type of Pull Request is this?

What is the current behavior?

What is the new behavior?

Other information

N/A

omar2205 commented 1 year ago

We might even be able to get rid of if (browser) {} check. (Didn't test)