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

Use React 18 types and useId hook for identifiers #105

Merged
merged 2 commits into from
Mar 21, 2024

Conversation

matthieuauger
Copy link
Contributor

@matthieuauger matthieuauger commented Mar 18, 2024

My previous assumption was erroned, project already uses React 18 but we didn't upgrade the related typescript types so we weren't able to import the new useId() hook.

This PR upgrade the types version and allow usage of useId() instead of hardcoded id

Fixes #75 comment
Cancels #98

@matthieuauger matthieuauger requested a review from a team as a code owner March 18, 2024 19:54
@matthieuauger matthieuauger changed the title Use id fix react types [wip] Use id fix react types Mar 18, 2024
@matthieuauger matthieuauger marked this pull request as draft March 18, 2024 20:48
@matthieuauger matthieuauger changed the title [wip] Use id fix react types Use React 18 types and useId hook for identifiers Mar 18, 2024
@matthieuauger matthieuauger marked this pull request as ready for review March 19, 2024 16:40
@matthieuauger
Copy link
Contributor Author

Hi @mazurroman, for this PR I needed to change a few types, I performed an extensive functional test, compiling a program, using the kbar, adding an argument but it would be useful if you quickly can test typical use-cases to ensure nothing has been broken.

@remybar
Copy link
Collaborator

remybar commented Mar 20, 2024

Great work Matthieu !

I reviewed the code and I tested a maximum of features, LGTM !

@mazurroman mazurroman merged commit bc5132b into walnuthq:main Mar 21, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

chore: Upgrade to React 18
3 participants