ian
ian4w ago

ReactFlow + Convex

This is a simple example of how to use Convex with ReactFlow. Just click to create nodes, and connect them with edges by dragging from the handles. Using optimistic updates for fast local performance. https://github.com/ianmacartney/reactflow-demo
No description
8 Replies
ian
ianOP4w ago
@Mez I hadn't seen your one 🤦‍♂️ but curious how it compares
Mez
Mez4w ago
Nice! I simply created a schema viz! But I am using reactflow with a convex project and I simply save the reactflow state as a json string!
ian
ianOP4w ago
that is a good straightforward way to do it if you don't have a lot of multiplayer editing. Mine will just send up the changes, so multiple users can be changing different things at the same time and not overwrite each other
Mez
Mez4w ago
Yup, makes sense!
luffy
luffy4w ago
Hi @ian i gave it a try, the readme is missing npx @convex-dev/auth otherwise it throws an error 😦
ian
ianOP4w ago
It should be part of the npm run dev predev script? btw if you're running it locally, you need to run npx convex dev in another terminal while you're running npm run dev for the first time, sorry about that It's in setup.mjs which should get called. but if you could cut a PR to the readme for what works for you, that'd be awesome
luffy
luffy4w ago
Sure, yeah it works for me now are you planning on working on this and more features? I would like contribute if you like to add more features i feel this project would look good on my resume 🙂
ian
ianOP3w ago
I'm not working on it right now, but Tiago is. Feel free to put a PR but it might take me a week or two to get back to it. Feel free to fork it and make it awesome for your resume regardless

Did you find this page helpful?