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
Copy file name to clipboardExpand all lines: docs/components/ChangelogContent.mdx
+24Lines changed: 24 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,27 @@
1
+
## 2026.03.30
2
+
3
+
Add blockerPlugin and useBlocker hook for navigation blocking [`c740c5e`](https://github.com/daangn/stackflow/commit/c740c5e28c30afc23fff8705c405cefa514a1f35)
4
+
5
+
- `useBlocker({ shouldBlock, onBlocked })` hook to declare blocking policies per activity
6
+
- Blocking set model: multiple blockers can block a navigation, all must `proceed()` for it to execute
7
+
- Only blockers from active (`isActive: true`) activities are evaluated
8
+
- `onBlocked` notifications are serialized in navigation occurrence order (no re-entrancy)
9
+
- Error isolation: one blocker's `onBlocked` throwing does not prevent other blockers from being notified
10
+
- Plugin-level `onError` option for custom error handling (defaults to `console.error`)
0 commit comments