Skip to content

Conversation

jonkoops
Copy link
Contributor

Works towards closing #7142. More information can be found in the React 18 migration guide.

@jonkoops jonkoops mentioned this pull request Sep 21, 2022
20 tasks
@patternfly-build
Copy link
Contributor

patternfly-build commented Sep 21, 2022

@wise-king-sullyman
Copy link
Contributor

@jonkoops looks like for some reason this change causes an error to pop up in the integration tests for the menu component, do you have any guess as to why that might be?

@jonkoops
Copy link
Contributor Author

@wise-king-sullyman It might have something to do with the fact that under Strict Mode component effects will get triggered twice. This is done during development to ensure that effects are cleaned up properly.

However, that should not impact a production build. So I am not entirely sure what is going on here.

@stale
Copy link

stale bot commented Dec 23, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the wontfix label Dec 23, 2022
@jonkoops
Copy link
Contributor Author

Bumping this for stalebot

@stale stale bot removed the wontfix label Dec 25, 2022
@stale
Copy link

stale bot commented Feb 24, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the wontfix label Feb 24, 2023
@jonkoops
Copy link
Contributor Author

bump

@stale stale bot removed the wontfix label Feb 28, 2023
@wise-king-sullyman
Copy link
Contributor

I'm still not sure what's going on with the failing integration test here.

@nicolethoen do you have any ideas? Also would this need to be updating to target the v5 branch now?

@jonkoops
Copy link
Contributor Author

jonkoops commented Mar 1, 2023

@wise-king-sullyman when opting in to the new root API it also enables the new concurrent renderer (see React Docs). There must be something in PatternFly that is not compatible with this new renderer.

I am seeing the same in our application when the new root API is used. I have yet to find out why though, as there is no error logged to indicate anything is wrong.

@nicolethoen
Copy link
Contributor

yes this should be updated to the v5 branch. I'll have to investigate further to see if I have any ideas. The last time I looked at this PR I couldn't identify the problem

@jonkoops jonkoops force-pushed the switch-to-createroot branch from 8af15a0 to 321e570 Compare March 6, 2023 11:28
@jonkoops jonkoops changed the base branch from main to v5 March 6, 2023 11:28
@jonkoops
Copy link
Contributor Author

jonkoops commented Mar 6, 2023

I went ahead and changed the target branch to v5. Still not quite sure why things are breaking, but we should get this fixed to offer full React 18 support.

Copy link
Contributor

@tlabaj tlabaj left a comment

Choose a reason for hiding this comment

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

@jonkoops it does not like the "click" in this test.

The flyout menu item is not clickable. The flyout menu renders on mouseover.
The test case in not testing anything. You can disable it and that should fix your PR so we can merge it.

@jonkoops jonkoops force-pushed the switch-to-createroot branch from 321e570 to 1e31e05 Compare March 20, 2023 15:33
@jonkoops
Copy link
Contributor Author

@tlabaj thanks for the tip, looks like skip()ing this test did fix the issue.

@jonkoops jonkoops requested a review from tlabaj March 20, 2023 15:55
Copy link
Contributor

@tlabaj tlabaj left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@wise-king-sullyman wise-king-sullyman left a comment

Choose a reason for hiding this comment

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

🥳

@nicolethoen nicolethoen merged commit 158b7c7 into patternfly:v5 Mar 20, 2023
@patternfly-build
Copy link
Contributor

Your changes have been released in:

  • demo-app-ts@5.0.0-alpha.25
  • @patternfly/react-integration@5.0.0-alpha.11

Thanks for your contribution! 🎉

@jonkoops jonkoops deleted the switch-to-createroot branch March 21, 2023 12:33
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.

6 participants