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
**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)
21
+
**React-router-dom >= 7** and shall be ideally used with [**data routers**](https://reactrouter.com/6.28.1/routers/picking-a-router#using-v64-data-apis)
20
22
21
23
```bash
22
24
pnpm add react-router-prompt
@@ -69,12 +71,15 @@ yarn add react-router-prompt
69
71
70
72
#### Note 🗒️
71
73
72
-
This version works with react-router-dom >=v6.19
73
-
Should be used within [data routers](https://reactrouter.com/en/6.8.1/routers/picking-a-router#using-v64-data-apis)
74
+
This version works with react-router-dom >=v7 or react-router >=v7 and shall be ideally used with [**data routers**](https://reactrouter.com/6.28.1/routers/picking-a-router#using-v64-data-apis)
75
+
76
+
- For react-router support `(v7)` please install `v0.8.x`
77
+
78
+
- For react-router-dom support `(v6.19.x- v6.28.1)` please install `v0.7.x`
74
79
75
-
For react-router support `(v6 - v6.2.x)` please install v0.3.0
80
+
- For react-router-dom support `(v6.7.x- v6.18.x)` please install `v0.5.4`
76
81
77
-
For react-router support (v6.7.x - v6.18.x) please install v0.5.4
82
+
- For react-router-dom support `(v6 - v6.2.x)` please install `v0.3.0`
78
83
79
84
_Skipped support in middle due to breaking changes on react-router apis_
0 commit comments