I changed my mind about writing new JavaScript frameworks
whitep4nth3r.com
whitep4nth3r.com
> What’s more, static site builds in both Next.js and Gatsby can’t make use of server-side rendering functionality.
I haven't used Next.js but I heard that it supports server side rendering, so I assume you can use it kind of like Rails?
Is the issue with Next.js that you would have to remember to use <a> instead of <Link>? That sounds like not a big deal.
It also sounds like the author is complaining about Next.js/Gatsby not having an option that doesn't even make sense in the first place. "static site builds in both Next.js and Gatsby can’t make use of server-side rendering functionality" - What does this even mean? Of course a static site build won't have SSR.
I'm quite confused on _why_ they want next to act like this? You can use anchor tags to force a browser navigation, but what does it get you? You're still loading JS bundles and it's not like <Link /> breaks anything like history or open in new tab. People put turbolinks in their rails app to get something that works half as well.
You could also use unstable_disableRuntimeJs on some pages and your <Link /> will still fully degrade to act like a completely server rendered page.
Which is why they're called static builds?
Next.js supports ISR, which is a great way to hydrate pages without causing too much overhead.