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 React to 18.2.0 #11

Conversation

jamesrkiger
Copy link
Collaborator

This PR upgrades the project's React dependency to v18.2.0. The upgrade appears to have no negative impact on functionality on either the patient side or the admin side. A new warning does appear in the console, however:

`react.development.js:209 Warning: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:

  1. You might have mismatching versions of React and the renderer (such as React DOM)
  2. You might be breaking the Rules of Hooks
  3. You might have more than one copy of React in the same app
    See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`

I believe this is related to the @hot-loader/react-dom dependency, which is no longer actively maintained. The solution would likely be to get rid of this dependency and switch to built-in react tooling.

This also includes some minor changes to the cases of import paths. On my linux system webpack could not resolve those imports due to the mismatch in case between the given path and the actual filename. I decided to leave the filenames as-is and just changed the import paths.

@noliveleger noliveleger self-requested a review September 7, 2022 15:28
@noliveleger noliveleger self-assigned this Sep 7, 2022
@fperreault fperreault changed the base branch from develop to feature/update-react-deepair September 19, 2022 02:27
@fperreault fperreault merged commit d12ec0e into mirror-effect-plus-protocol:feature/update-react-deepair Sep 19, 2022
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.

None yet

3 participants