Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/n00nday/kit-reproduction
https://github.com/n00nday/kit-reproduction
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/n00nday/kit-reproduction
- Owner: N00nDay
- Created: 2022-10-29T00:26:57.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-29T00:39:59.000Z (about 2 years ago)
- Last Synced: 2024-11-04T02:42:02.406Z (about 2 months ago)
- Language: TypeScript
- Size: 36.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 >
```