Replies: 3 comments 3 replies
-
I think this is definetely in the future of SolidStart. We haven't started effort on this but the pieces are there. We will start will giving you the ability to prerender pages in SSR mode.. |
Beta Was this translation helpful? Give feedback.
-
Yeah this takes a little consideration, because once you load a page and go to navigate to the next there is the question of if you ever want to do a full page reload and what the gap is. Part of what we are thinking about is static routes are great for landing on them but afterwards doing more MPA navigation may not be desired. Then when you start thinking about SPA vs Islands not sure that needs to be a distinction if client-side routing is involved. Like you might want characteristics but that probably isn't necessarily even at a route level. I think caching might be the most interesting question. Because it isn't limited to just API requests, it could extend to server rendered HTML partials. There are some assumptions the different approaches make that might suggest the need to a full page reload on the boundaries. But I wonder if this exploration will serve to streamline as much as categorize. |
Beta Was this translation helpful? Give feedback.
-
It is true that not all functionality needs route level design. In the local client environment, it can clearly be separate with Service Workers on one side (when one needs route level management) and Workers on the other side (which can benefit from cross-route access). At the end of the day, the design decision has mostly to do with ergonomics and user experience, as well as discoverability and replication (like sharing the state of an application between multiple clients). |
Beta Was this translation helpful? Give feedback.
-
As a website may be composed of multiple types of applications (landing page, blog, PWA, store, api, etc), it might make sense to be able to choose between different modes of rendering or not rendering (API, SSG, SSR, SPA, Islands, etc.) according to different website routes.
For example, one may have the following pattern on a domain:
Each route may have different rendering requirements and also may talk to a different server on the backend or different cloud infrastructures.
Via Rollup, Vite allows to split the build output for multi-page applications.
Would that be possible to leverage that mechanism, maybe with a rollup plugin, in order to create the output for different rendering modes based on different routes in solid-start?
Beta Was this translation helpful? Give feedback.
All reactions