Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
},
"peerDependencies": {
"@tanstack/react-query": "^5",
"firebase": "^11.3.0"
"firebase": "^11.3.0",
"react": "^18.0.0 || ^19.0.0"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

By adding react: '^18.0.0 || ^19.0.0' as a peer dependency, you are signaling that this package is compatible with React 18. However, the devDependencies only list React 19, which suggests testing might only be performed against React 19. To prevent potential runtime errors for users on React 18, it's recommended to also test the package against a React 18 environment to ensure full compatibility with the declared versions.

}
}