million
million copied to clipboard
feat: nextjs plugin for autoblocking
Is your feature request related to a problem? Please describe. Sometimes, using Million can require complex code changes in a Next app.
Describe the solution you'd like A next plugin could solve this by automatically using Million blocks without having to do any code changes.
Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.
Additional context Add any other context or screenshots about the feature request here.
Would this involve the Next.js compiler? I think this can follow a structure similar to what y'all used for Vite.
Yeah, it would. The idea is that it is automatic, so it would be hooking into some low-level APIs. But, this won't work very well in most apps because it doesn't support hooks.
FYI, this is next up. Already have some ideas around how hooks / callbacks can be implemented
Nice!
Next up is to solve the SSR story of Million to start development of this plugin
Next up is to solve the SSR story of Million to start development of this plugin
Pun intended? 🥹🥹. Next is up next.
Any updates y'all? I'm very interested in this issue.
#316
https://twitter.com/aidenybai/status/1650406345517199361?s=20
it's great news that full support for next is out, but the plugin technically speaking isn't. i asked in the discord and you said you were working on it.
ah good catch. let's reopen this issue
Our current direction is focused on primitives that allow developers to opt-in to block rendering. When we get to a point where blocks are very stable and support SSR/RSC, and there is a use case from a project, then we can reconsider this issue.
awesome! we've got a vite plug-in, so I guess the logic could be carried over to a next plugin?
@Milo123459 it should automatically work in both vite & next out of the box
wtf that's awesome well done
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within the next 7 days.