Skip to content

Commit

Permalink
Add exports for unstable_useBlocker and unstable_usePrompt (remix…
Browse files Browse the repository at this point in the history
  • Loading branch information
chaance authored and andrelandgraf committed Jan 22, 2023
1 parent bbc740a commit 97b9242
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/yellow-ligers-clean.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@remix-run/react": patch
---

Added support for `unstable_useBlocker` and `unstable_usePrompt` from React Router
4 changes: 4 additions & 0 deletions packages/remix-react/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ export type {
ShouldRevalidateFunction,
SubmitFunction,
SubmitOptions,
unstable_Blocker,
unstable_BlockerFunction,
} from "react-router-dom";
export {
Form,
Expand All @@ -32,6 +34,8 @@ export {
useRouteLoaderData,
useSearchParams,
useSubmit,
unstable_useBlocker,
unstable_usePrompt,
} from "react-router-dom";

export type {
Expand Down

0 comments on commit 97b9242

Please sign in to comment.