Skip to content

Commit

Permalink
"Using Both Loaders" example has wrong type for the client loader arg (
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorElHajj authored Jan 2, 2025
1 parent 4366dd0 commit 6c27453
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@
- valerii15298
- ValiantCat
- vdusart
- VictorElHajj
- vijaypushkin
- vikingviolinist
- vishwast03
Expand Down
2 changes: 1 addition & 1 deletion docs/start/framework/data-loading.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export async function loader({ params }: Route.LoaderArgs) {

export async function clientLoader({
params,
}: Route.ClientLoader) {
}: Route.ClientLoaderArgs) {
const res = await fetch(`/api/products/${params.pid}`);
return res.json();
}
Expand Down

0 comments on commit 6c27453

Please sign in to comment.