Create React App 4.0
github.com
github.com
I read the linked issue on react-refresh on the release note, but no idea if it fast enough or not.
For whatever reason CRA has a different hidden env var flag that controls this even though you have a “strict: true” in your tsconfig file.
I think the main difference is CRA has the concept of "ejecting", allowing you to avoid interacting with config files until you really need to customize how the build works.
I've found the next router pretty easy to deal with, and have been writing less code to achieve the same things over time as next.js matures.
React Router on the other hand lets you render subroutes directly into an ‘outlet’, maintaining the DOM state outside of it.
This is a super common pattern when you’re building something like an admin dashboard app which I do often.
Even standard patterns like having seperate components for page header, sidebar that doesn't rerender the main content section feels very hacky with Next.js, and that too after digging through many people's blogs to read how they accomplished that.
I guess next.js really wants you to ditch the whole SPA idea atleast when it comes to routing.
I hope folks also explore more moderate patterns like server rendering only the first page load (either with react dom or using state hydration) or exploring better separation of client bundles too, and figure out what works best for them. Rather than sticking to whatever next.js or CRNA are set up for by default
I’m looking for something that bakes in background jobs, db structure, and deploy scripts but haven’t found anything with comparable community/usage.