Skip to content

Comments

Widen accepted ref types for React 19 ref types#32

Closed
jasikpark wants to merge 2 commits intoleonardodino:mainfrom
jasikpark:patch-1
Closed

Widen accepted ref types for React 19 ref types#32
jasikpark wants to merge 2 commits intoleonardodino:mainfrom
jasikpark:patch-1

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