Skip to content

Commit

Permalink
docs: minor
Browse files Browse the repository at this point in the history
  • Loading branch information
brillout committed Apr 19, 2024
1 parent 3d65108 commit f8e9dc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/pages/onBeforeRender/+Page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ See full implementation at <Link href="/meta#example-sql" doNotInferSectionTitle

## Override

There can be only one `onBeforeRender()` hook per page. For example, if you define a global `onBeforeRender()` hook at `/pages/+onBeforeRender.js` as well as a page-specific one at `/pages/star-wars/+onBeforeRender.js` then the page-specific one overrides the global one.
There can be only one `onBeforeRender()` hook per page. For example, if you define a global `onBeforeRender()` hook at `/pages/+onBeforeRender.js` as well as a page-specific one at `/pages/star-wars/+onBeforeRender.js` then the page-specific one overrides the global one. See <Link href="/config#inheritance" />.

> If you want multiple `onBeforeRender()` hooks, then consider:
> - <Link href="/meta">Creating custom hooks</Link> instead: you can then use one global `onBeforeRender()` hook that orchestrates many custom hooks.
Expand Down

0 comments on commit f8e9dc7

Please sign in to comment.