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
So I spent a not so insignificant amount of time looking into this yesterday to bring canvas kit to the latest version of react-virtual and it turns out, this fix is not so trivial as it looks:
@tanstack/react-virtual is v3 whereas react-virtual is v2. There are several breaking changes including useVirtual now becoming useVirtualizer, different signatures and behaviors. On initial glance, there seems to be a large amount of refactoring required
Additionally, taking into consideration that the react-virtual retyped interfaces utility exists to support exporting types from the package which this closed PR was supposed to address, I don't think I have enough context to make the necessary changes without breaking the desired implementation
Maybe not of so much consequence is the fact that @tanstack/react-virtual v3 is still in beta and I don't know how that would factor in the decision to upgrade
There doesn't seem to be a migration guide from v2 to v3 for @tanstack/react-virtual
I would also like to point out this (very recent) issue that is trying to raise awareness to the fact that a PR was created AND merged with the sole purpose of adding support for React 18 in v2 but is missing the subsequent release. The issue was raised because people were asking for a new release on the closed PR and I guess the owner doesn't check comments on closed PRs so hopefully he sees the new issue and responds one way or the other.
If a new release were to be created on v2, that would easily solve our problems so I guess for now we can just wait and see if that happens and cross our fingers? 🤷🏾 🤞🏾
🐛 Bug Report
Canvas Kit throws a peer dependency conflict in React 18
Fix
react-virtual
is now@tanstack/react-virtual
updating to the new namespace should fix the issue, see:
https://github.com/TanStack/virtual/blob/623ac63988f16e6ea6755d8b2e190c123134501c/packages/react-virtual/package.json#L55-L57
The text was updated successfully, but these errors were encountered: