POC with Next.js and feedback
See original GitHub issueI’m building a POC using Next.js + Reaflow, hosted on Vercel.
It’s open source (MIT), see https://github.com/Vadorequest/poc-nextjs-reaflow Online demo hosted on Vercel at https://poc-nextjs-reaflow.vercel.app/
Here is a little feedback about using Reaflow:
framer-motion
is a peer-dependency but it’s not explicit on the README, I had to figure it out myself. Importingreaflow
will crash the whole app if it’s not installed.- This should be explicitly documented.
reaflow
doesn’t play well on the server (Next.js renders on both server + client) and should only be rendered on the client- This should be explicitly documented.
- foreignObject and events, bad DX, no example (spent quite some time on this)
- Could have a SB example
Using React Select doesn’t workIt’s actually because of foreignObject and CSSdisplay
property, need to document how to workaround- Add DB demo or documentation as to why it doesn’t work, workarounds, etc.
I’ll add more feedback as my POC grows.
PR trackings (all the things I wanna do):
Features:
- ✍️ Initialize Undo/Redo with existing history - 🎉 PR https://github.com/reaviz/reaflow/pull/69
- Changing the Undo/Redo API (expose more internal variables + option to disable keyboard shortcuts)
- ✅ Changing the Edge/Ports component API (adding
children
) - 🎉 PR https://github.com/reaviz/reaflow/pull/76
Documentation:
- ✅ PR for documentation (README) - 🎉 PR https://github.com/reaviz/reaflow/pull/71
- Next.js support
framer-motion
peer-dependency, etc.- Community examples (https://github.com/Vadorequest/poc-nextjs-reaflow)
- linking react/react-dom https://github.com/facebook/react/issues/14257#issuecomment-595183610
- ✅ PR for documentation (Examples) - 🎉 PR https://github.com/reaviz/reaflow/pull/72
- ✅ PR for advanced explanations regarding
foreignObject
and its usage and limitations - 🎉 PR https://github.com/reaviz/reaflow/pull/74- Needs more discussion, unclear what should be done atm. (FAQ?)
- See https://github.com/reaviz/reaflow/issues/45
- See https://github.com/reaviz/reaflow/discussions/34
- See https://github.com/reaviz/reaflow/issues/50
- See https://github.com/reaviz/reaflow/issues/44
- ✅ PR for documentation about using immutable objects when using setState - 🎉 PR https://github.com/reaviz/reaflow/pull/73
- ✍️ PR about ELK FAQ, tricks and limitations (README?) - 🎉 PR https://github.com/reaviz/reaflow/pull/75
Bug fixes:
- ✅ TypeScript types (wrong types and inconsistent naming) - 🎉 PR: https://github.com/reaviz/reaflow/pull/63
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
What we've learned from building NextJS POC - Tech Shaadi
We've worked on the NextJS POC, to evaluate if we can use this tool for our future development. The assumption was NextJS can...
Read more >Laravel & Next JS based Blog - a POC - YouTube
I am planning to rebuild my blog from a Laravel based website into a Next JS based light website blog. The pages will...
Read more >Advanced Features: Custom `Document` - Next.js
js 13 introduces the app/ directory (beta). This new directory has support for layouts, nested routes, and uses Server Components by default. Inside...
Read more >Feedback for a NextJS alternative in go : r/golang - Reddit
I am working on a nextJS alternative and am pretty much just looking for some feedback on the project, as well as if...
Read more >Next.js 13: The Game Changer? - Bits and Pieces
Bit's open-source tool help 250,000+ devs to build apps with components. Turn any UI, feature, or page into a reusable component — and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
There is a few tests actually - feel free to add more - though I generally sway towards pure function tests over component tests. Feel free to add more!
Sure - would encourage you to join the discord channel - https://discord.com/invite/tt8wGExq35