Skip to content

Commit

Permalink
one more missing useAuth
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobbe committed Dec 11, 2024
1 parent 9e3f662 commit 5a33bdf
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions docs/docs/router.md
Original file line number Diff line number Diff line change
Expand Up @@ -743,10 +743,8 @@ Let's say you have a dashboard area on your Redwood app, which can only be acces

In order to display a loader while auth details are being retrieved you can add the `whileLoadingAuth` prop to your `PrivateSet` component:

```jsx
//Routes.js

<Router>
```jsx title="Routes.jsx"
<Router useAuth={useAuth}>
<PrivateSet
wrap={DashboardLayout}
unauthenticated="login"
Expand Down

0 comments on commit 5a33bdf

Please sign in to comment.