Skip to content

Commit

Permalink
fixed broken link to re-exporting loaders
Browse files Browse the repository at this point in the history
  • Loading branch information
shairez committed Nov 26, 2024
1 parent 6a582e4 commit f022b49
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/docs/public/_redirects
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
/docs/components/lifecycle/ /docs/components/tasks/ 308
/docs/components/projection/ /docs/components/slots/ 308
/docs/components/resource/ /docs/components/state/ 308
/docs/cookbook/re-exporting-loaders/ /docs/re-exporting-loaders/ 308

/qwikcity/* /docs/:splat 308
/integrations/* /docs/integrations/:splat 308
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/src/routes/docs/cookbook/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ contributors:
- Adbib
- gioboa
- aendel
- shairez
---

# Cookbook
Expand All @@ -27,7 +28,6 @@ Examples:
- [Media Controller with iOS Support](./mediaController/)
- [NavLink](./nav-link/)
- [Portals](./portals/)
- [Re-exporting loaders](./re-exporting-loaders/)
- [Streaming/deferred loaders](./streaming-deferred-loaders)
- [Synchronous Events with State](./sync-events/)
- [Theme Management](./theme-management/)
2 changes: 1 addition & 1 deletion packages/eslint-plugin-qwik/src/loaderLocation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const loaderLocation: Rule.RuleModule = {
(docs: https://qwik.dev/docs/route-loader/).
This {{fnName}}() is declared outside of the route boundaries. This may be useful when you want to create reusable logic or a library. In such a case, it is essential that this function is re-exported from within the router boundary otherwise it will not run.
(docs: https://qwik.dev/docs/cookbook/re-exporting-loaders/).
(docs: https://qwik.dev/docs/re-exporting-loaders/).
If you understand this, you can disable this warning with:
// eslint-disable-next-line qwik/loader-location
Expand Down
2 changes: 1 addition & 1 deletion packages/qwik-city/src/runtime/src/server-functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export const routeLoaderQrl = ((
For more information check: https://qwik.dev/qwikcity/route-loader/
If your are managing reusable logic or a library it is essential that this function is re-exported from within 'layout.tsx' or 'index.tsx file of the existing route otherwise it will not run or throw exception.
For more information check: https://qwik.dev/docs/cookbook/re-exporting-loaders/`);
For more information check: https://qwik.dev/docs/re-exporting-loaders/`);
}
return _wrapProp(state, id);
});
Expand Down

0 comments on commit f022b49

Please sign in to comment.