Skip to content

Commit

Permalink
Ad hoc case
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon committed Apr 11, 2022
1 parent 164c0ae commit 41c3664
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/rollup/build-all-release-channels.js
Expand Up @@ -251,7 +251,11 @@ function updatePackageVersions(
}
}
if (packageInfo.peerDependencies) {
if (!pinToExactVersion && moduleName === 'use-sync-external-store') {
if (
!pinToExactVersion &&
(moduleName === 'use-sync-external-store' ||
moduleName === 'use-subscription')
) {
// use-sync-external-store supports older versions of React, too, so
// we don't override to the latest version. We should figure out some
// better way to handle this.
Expand Down

0 comments on commit 41c3664

Please sign in to comment.