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

Upgrade to React 18 #571

Merged
merged 4 commits into from
Oct 8, 2022
Merged

Upgrade to React 18 #571

merged 4 commits into from
Oct 8, 2022

Conversation

michael-markl
Copy link
Member

@michael-markl michael-markl commented Oct 2, 2022

To complete the upgrade to react 18, we need to use createRoot from react-dom/client.
Moreover, I had to adjust the creation of the AppToaster, which uses the deprecated old API.

administration/src/components/AppToaster.tsx Outdated Show resolved Hide resolved
Copy link
Member

@maxammann maxammann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is better, if no null ptr exceptions can happen 👍🏼

@michael-markl
Copy link
Member Author

Yeah, there shouldn't be any (TM).

@michael-markl michael-markl merged commit 70600a3 into whitelabel Oct 8, 2022
@michael-markl michael-markl deleted the upgrade-to-react18 branch October 8, 2022 15:57
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