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

React 18.2.0 bug #32

Open
domus71 opened this issue Dec 12, 2023 · 4 comments
Open

React 18.2.0 bug #32

domus71 opened this issue Dec 12, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@domus71
Copy link

domus71 commented Dec 12, 2023

In React 18.2.0, it seems to generate two div.openseadragon-container.

Costis

@stephenwf
Copy link
Owner

I think this will only happen in Strict Mode using a development build of React. A quick workaround would be to remove <React.StrictMode /> from your root component. It should be fixed though.

@domus71
Copy link
Author

domus71 commented Dec 12, 2023

Geat! Thanks

@domus71 domus71 closed this as completed Dec 12, 2023
@stephenwf
Copy link
Owner

I'll reopen to track proper R18 support 👍 thanks for reporting

@stephenwf stephenwf reopened this Dec 13, 2023
@stephenwf stephenwf added the bug Something isn't working label Dec 13, 2023
@domus71
Copy link
Author

domus71 commented Dec 13, 2023

I will be nice to upgrade to openseadragon 4 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants