Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Widen accepted ref types for React 19 ref types #32

Closed
wants to merge 2 commits into from

Conversation

jasikpark
Copy link
Contributor

React 19 alters how refs are calculated, so allowing a null ref value is needed to be explicitly allowed now.

Otherwise:

image

React 19 alters how refs are calculated, so allowing a null ref value is needed to be explicitly allowed now.
@jasikpark jasikpark changed the title Widen inputRef type for CodeInputProps for React 19 ref types Widen accepted ref types for React 19 ref types Jan 7, 2025
@leonardodino
Copy link
Owner

hey @jasikpark thanks for contributing this fix! 💯🙌

would you mind updating the diff to only include the intended changes, and not the formatting updates?
(probably just | null in some places, if I understand correctly).

Back out "Always accept null as part of a RefObject"

This backs out commit 4589704.


Always accept null as part of a RefObject
@jasikpark jasikpark marked this pull request as ready for review January 8, 2025 18:25
@jasikpark
Copy link
Contributor Author

hey @jasikpark thanks for contributing this fix! 💯🙌

would you mind updating the diff to only include the intended changes, and not the formatting updates? (probably just | null in some places, if I understand correctly).

done!

@leonardodino
Copy link
Owner

merged this changes in #34 and released v0.2.0 of all packages!
thanks again for contributing! ❤️

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.

2 participants