Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/n00nday/kit-reproduction


https://github.com/n00nday/kit-reproduction

Last synced: 4 days ago
JSON representation

Awesome Lists containing this project

README

        

# clone repo
```
git clone https://github.com/N00nDay/kit-reproduction.git
```

# install dependencies
```
npm install
```

As it sits the project is set up as the documents suggest utilizing `applyAction` to update the `form` variable.

I have a workaround that is getting me by on line 27 of `+layout.svelte`. Just uncomment the line and it will work with the additional typescript error.
```
18 {
23 return async ({ result, update }) => {
24 if (result.type === "success") {
25 update();
26 } else if (result.type === "invalid") {
27 // form = result.data;
28 await applyAction(result);
29 } else {
30 await applyAction(result);
31 }
32 };
33 }}
34 >
```