[docs] Fix versions page by mnajdova · Pull Request #48261 · mui/material-ui (original) (raw)
Yes, I wanted to avoid this - this is why I started with the generatedVersions and then moved to the JSON, I don't want to have another step to do on older versions when we start to work on the new one.
One thing we could consider then is doing both, use getInitialProps to bake it in the bundle, refetch on the client to synchronize, then distribute with a context for the versions page. Then on current versions it would always be snappy and reliable, and on older versions we'd have sensible fallback data and up-to-date on the client, and the option to simply click redeploy to make older versions snappy and reliable too. Best of both worlds.