You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`app/blog/[slug]/loader.jsx`| Data loader for `/blog/:slug`|
136
138
|`app/loading.jsx`| Loading UI while data is fetched |
137
139
138
-
139
140
## 🧪 useAppRouter Hook
141
+
140
142
You can now use the useAppRouter() hook to get a JSON structure of all matched routes. This is useful when you want to inspect or manipulate the route config manually — for example, inside a custom RouterProvider or createBrowserRouter setup.
141
143
142
144
```jsx
@@ -207,6 +209,7 @@ app/
207
209
Add a `loader.jsx` file alongside any `page.jsx` to fetch data before rendering the page. The returned value will be passed as the `data` prop to the sibling `page.jsx` component.
208
210
209
211
Example:
212
+
210
213
```
211
214
app/
212
215
└── about/
@@ -232,4 +235,3 @@ Inspired by **Next.js App Router** and built with **React Router DOM** + **Vite*
0 commit comments