Replies: 1 comment 2 replies
-
Can you share a repository that reproduces this behaviour? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The docs and / or the concepts are a bit confusing. I found the SPA page documentation that suggested I turn off SSR. I thought "good, I don't want server side rendering" so I added the suggested change...
export const ssr = false;
.... then I discovered that my statically generated content went away ? "Huh?, Where's the beef?" I thought. So, the only conclusion I could come up with is that
Regardless, I think I have my pages working the way I desire, but only after pushing enough buttons and testing the results. So, it feels fragile.
An example of a problem to help illustrate my misunderstandings.
I have a static page that statically generates great. I pull data from a test database and produce a static page. Just as I'd hoped for.
However, at the end of the same document - I inserted the
<Counter/>
example component that comes with the scaffold app. As I also expect, the counter has been statically inserted into the document.But, I was expecting the control to still work as before with the
+
and-
buttons, yet there is no client side behavior associated with the counter. Just the original starting number of zero with a minus and plus button that gives the impression that it's usable.So, how do I get svelte components to work with the rest of my static content?
Beta Was this translation helpful? Give feedback.
All reactions