Making Meteor SSR better #12680
Replies: 4 comments 4 replies
-
Interesting, could this in a way mean that we will have to create an official router for Meteor? For React it would be best if we could tie it in with things like react-router and same in other languages, unless this path would get only triggered if it is the direct entry point into the app and not when the user is already in the app, so that it doesn't trigger SSR when it is not needed. |
Beta Was this translation helpful? Give feedback.
-
Would this also work with pub / sub? Or would you render an initial set of data and then have pub / sub take over in the view? |
Beta Was this translation helpful? Give feedback.
-
While I love the idea of having one solution for all frontend layers, I think it's at least a huge thing. I mean, there are whole frameworks that focus only on one of them (let's focus on Next for React and Nuxt for Vue here) and even there SSR is not a trivial thing. Even Vite's SSR is not exactly what I'd expect, because it doesn't handle streaming (and it's crucial for React's Overall, I'd rather go into a per-view layer solution, just like |
Beta Was this translation helpful? Give feedback.
-
Interesting topic. Do we have any update? I tried |
Beta Was this translation helpful? Give feedback.
-
Hey guys! we saw many comments on the roadmap forum post(check it out). The topic that was most commented, on at the time of this writing, was Oplog/C. Streams and Redis, there are already discussions for that here in GitHub, and personally I think those topics make sense.
Having said that, this discussion focuses on what the community wants to see for the SSR part.
What I would propose is something in the likes of Inertia.js(PHP and Laravel have been in this game for some time, and they have really interesting ideas).
That API is really good. The only thing I would change is to make it more compatible with JS. Take this pseudocode snippet for an SSR future in Meteor:
we could have a config file to make the setup for ssr(react requires, for example, a setup to handle SSR)
This same API could be applied to Blaze, using the same inertia or the react, but then maybe we should bring this idea of SFC to Blaze.
We could have adaptors for Svelte, Vue, and many other Front end frameworks that do support SSR.
What you guys think?
Beta Was this translation helpful? Give feedback.
All reactions