Skip to content

Commit

Permalink
fix depends
Browse files Browse the repository at this point in the history
  • Loading branch information
dummdidumm committed Aug 5, 2022
1 parent f02fd25 commit 8f0e3aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion documentation/docs/05-loading.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ URLs can be absolute or relative to the page being loaded, and must be [encoded]
export async function load({ depends }) {
const url = `https://cms.example.com/articles.json`;
const response = await myOwnFetch(url);
depends(url);
depends([url]);

return {
article: await response.json()
Expand Down

0 comments on commit 8f0e3aa

Please sign in to comment.