Skip to content

Conversation

dimitris-tsetsonis
Copy link

@dimitris-tsetsonis dimitris-tsetsonis commented Sep 8, 2025

Why

Using latest react-spring version on a legacy React app (< 19.0.0) is throwing Error: Uncaught [TypeError: Cannot read properties of null (reading 'ref')] cause by this PR #2373

What

Patching the ref check so it doesn't try to assign the ref to the props object but passes the ref directly to the element.

Checklist

  • [ x ] Ready to be merged

Copy link

changeset-bot bot commented Sep 8, 2025

🦋 Changeset detected

Latest commit: d22f2d0

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Sep 8, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
react-spring Ready Ready Preview Sep 10, 2025 2:39pm

@joshuaellis
Copy link
Member

Can you add a changeset please? also is there a way to test this change easily?

@dimitris-tsetsonis
Copy link
Author

dimitris-tsetsonis commented Sep 9, 2025

@joshuaellis I'll add the changeset today. I'll try to think if I can add a test but since it needs 2 different versions of React I don't think it's possible. I could add a demo with the failing code if you want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants