mirror of
https://github.com/LukeHagar/website.git
synced 2025-12-09 04:22:13 +00:00
Merge pull request #763 from SumitBando/patch-1
Broken tutorial : Svelte load function needs to await for data to load
This commit is contained in:
@@ -16,7 +16,7 @@ import { getIdeas } from '$lib/ideas';
|
||||
|
||||
export async function load() {
|
||||
return {
|
||||
ideas: getIdeas()
|
||||
ideas: await getIdeas()
|
||||
};
|
||||
}
|
||||
```
|
||||
@@ -118,4 +118,4 @@ Simple as that! Now, let's create the page itself. Replace the contents in `src/
|
||||
</style>
|
||||
```
|
||||
|
||||
With this you have successfully created an Ideas Tracker! You can now submit ideas and view them.
|
||||
With this you have successfully created an Ideas Tracker! You can now submit ideas and view them.
|
||||
|
||||
Reference in New Issue
Block a user