Skip to content

Commit c5aa46e

Browse files
committed
Add changeset
1 parent 4e44d47 commit c5aa46e

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.changeset/serious-garlics-push.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
"react-router": patch
3+
---
4+
5+
Add `unstable_instrumentations` API to allow users to add observablity to their apps by instrumenting route loaders, actions, middlewares, lazy, as well as server-side request handlers and client side navigations/fetches
6+
7+
- Framework Mode:
8+
- `entry.server.tsx`: `export const unstable_instrumentations = [...]`
9+
- `entry.client.tsx`: `<HydratedRouter unstable_instrumentations={[...]} />`
10+
- Data Mode
11+
- `createBrowserRouter(routes, { unstable_instrumentations: [...] })`
12+
13+
This also adds a new `unstable_pattern` parameter to loaders/actions/middleware which contains the un-interpolated route pattern (i.e., `/blog/:slug`) which is useful for aggregating performance metrics by route

0 commit comments

Comments
 (0)