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

Migrate to React Flow 12 #32

Open
n0spaces opened this issue Jul 10, 2024 · 0 comments
Open

Migrate to React Flow 12 #32

n0spaces opened this issue Jul 10, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@n0spaces
Copy link
Collaborator

n0spaces commented Jul 10, 2024

React Flow 12 just got released and has a lot of breaking changes. Some new features include improved styling, better development tools, more node hooks, and server-side rendering. SSR could potentially help with node layouting, since we could render the nodes to get their computed size before running the layout engine.

Upgrading is probably not an urgent matter, but if we decide this project would benefit from one of the new features, then it's probably better to upgrade sooner rather than later.

Migration guide is here: https://reactflow.dev/learn/troubleshooting/migrate-to-v12

Just skimming through the guide, it looks like node size/position properties will need to be changed, and a bunch of custom types may need to be updated. I'm not sure if this project is affected by item 4 in the list, which states that node/edge properties are now immutable.

@n0spaces n0spaces added the enhancement New feature or request label Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant