Middleware to prepend new page component rather than swapping out the components
I hope the title is not confusing, but what I would like to achieve is a layout where page components are stacked on top of each other after routing. Each new route will be added to the top.
I tried to make a small sketch to visualise what I am trying to achieve, see attachment.
Basically my main question is: Would a middleware be something to achieve this with or is there a better starting point? At the same time, ideally I would like to achieve that each route can be pre-rendered as a static version so it remains SEO friendly. I might not need code snippets, I am wondering about the general approach to this.
0 Replies