Skip to content

Commit 94e0e8b

Browse files
committed
fix: add react-dom as peer dependency
If missing, then strict package managers like pnpm will not link this react-dom in, causing react-query to fail at runtime cause it can't load react-dom. Fixes #3534
1 parent 2d2de44 commit 94e0e8b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@
115115
"use-sync-external-store": "^1.1.0"
116116
},
117117
"peerDependencies": {
118-
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"
118+
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
119+
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
119120
},
120121
"peerDependenciesMeta": {
121122
"react-dom": {

0 commit comments

Comments
 (0)