Request for Example: Lazy-load a view fragment when a button is clicked
I define a lazy-loading view as the child view in the following situation: a view A has a child view L, and the implementation of view L does not exist when view A is first rendered.
There are likely several ways of implementing a lazy-loading view like this. The implementation we use for this example in Shpadoinkle would be most widely useful if it shows the implementation which is best for a Shpadoinkle app which is a traditional website, one which has dozens of unique pages.
Regarding when the lazy-loading view is rendered, it will likely be triggered by a browser's URL change or by the user clicking a link. I don't know which triggering mechanism would be best in a "real app" and which would be best for an example.
An additional question: what is an acceptable impact this would have on server-side rendering? I see there is an example for SSR.
Let's use this issue to host discussion and progress towards this goal.