Skip to content

Commit

Permalink
Support for react-router@6.19 (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewbusch7 committed Nov 30, 2023
1 parent 6a1dc67 commit 95dd546
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

### Prerequisite

**React-router-dom >= 6.7** and can be used only with [**data routers**](https://reactrouter.com/en/6.8.1/routers/picking-a-router#using-v64-data-apis)
**React-router-dom >= 6.19** and can be used only with [**data routers**](https://reactrouter.com/en/6.8.1/routers/picking-a-router#using-v64-data-apis)

```bash
pnpm add react-router-prompt
Expand Down Expand Up @@ -69,7 +69,7 @@ yarn add react-router-prompt
#### Note 🗒️
This version works with react-router-dom >=v6.7
This version works with react-router-dom >=v6.19
Should be used within [data routers](https://reactrouter.com/en/6.8.1/routers/picking-a-router#using-v64-data-apis)
For react-router-support `(v6 - v6.2.x)` please install v0.3.0
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"prettier": "^2.8.4",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.8.1",
"react-router-dom": "^6.19.0",
"size-limit": "^8.1.2",
"tslib": "^2.5.0",
"typescript": "^5.0.0",
Expand All @@ -85,7 +85,7 @@
"peerDependencies": {
"react": ">=16.8",
"react-dom": ">=16.8",
"react-router-dom": ">=6.7"
"react-router-dom": ">=6.19"
},
"size-limit": [
{
Expand Down
28 changes: 14 additions & 14 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/hooks/use-prompt.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useCallback, useEffect } from "react"
import {
useBeforeUnload,
unstable_useBlocker as useBlocker,
useBlocker,
unstable_Blocker as Blocker,
unstable_BlockerFunction as BlockerFunction,
} from "react-router-dom"
Expand Down

0 comments on commit 95dd546

Please sign in to comment.