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

Update nearly all dependencies #11

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

rivertam
Copy link

@rivertam rivertam commented Jun 16, 2023

Most notably, this should be more explicitly compatible with React 18.

There are still problematic peer dependencies because much of Docusaurus declares React 16-17 being supported and I don't think there are more recent versions of Docusaurus that do (though I think v3 will come out at some point and support React 18).

There are a lot of little new bugs with the docs, I think exclusively to do with mount/dismount lifecycle of the way that various examples in the docs work. I fixed a couple of them, but I didn't want to chase all of them down. So far, the only ones I've seen should just be a console.error in production.

Most notably, React to React 18
containerRef.current.offsetHeight / 2,
))
const rndPos = () => {
const container = containerRef.current;
Copy link
Author

Choose a reason for hiding this comment

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

Here's an example of a bug I fixed (but there are more like it). It errors during the render function when the container unmounts. I think it would get swallowed in production, but on the dev server it shows up as an error blocking the screen that you have to X out

@rivertam
Copy link
Author

Ugh the main boids example on the front page isn't full height and I can't quite figure out how to fix it. That's the only actual issue remaining that I can see, unless you count the fact that the docs themselves are in React 17 emulation mode because Docusaurus doesn't actually support React 18

@rivertam
Copy link
Author

Yeah, nx is messed up too (builds aren't working, etc.). Sad 😢

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

1 participant