Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Rich Harris <hello@rich-harris.dev>
  • Loading branch information
icalvin102 and Rich-Harris authored Aug 31, 2022
1 parent 8c851b8 commit 8ee88e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion documentation/docs/05-load.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export async function load({ depends }) {
depends(
`${api.base}/foo`,
`${api.base}/bar`
'page:foobar'
'my-stuff:foo'
);

return {
Expand Down
2 changes: 1 addition & 1 deletion packages/kit/types/ambient.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ declare module '$app/navigation' {
opts?: { replaceState?: boolean; noscroll?: boolean; keepfocus?: boolean; state?: any }
): Promise<void>;
/**
* Causes any `load` functions belonging to the currently active page to re-run if they registered it with `fetch` or `depends`. Returns a `Promise` that resolves when the page is subsequently updated.
* Causes any `load` functions belonging to the currently active page to re-run if they depend on the resource in question, via `fetch` or `depends`. Returns a `Promise` that resolves when the page is subsequently updated.
*
* If no argument is given, all resources will be invalidated.
*
Expand Down

0 comments on commit 8ee88e7

Please sign in to comment.