AK
AK
SSolidJS
Created by AK on 3/11/2025 in #support
SSG / Partial Hydration
the key is to use <NoHydration> and <Hydration>. You must hydrate starting with the root so you can mark everything NoHydration
21 replies
SSolidJS
Created by AK on 3/11/2025 in #support
SSG / Partial Hydration
@zulu figured it out! I updated the sample and added a readme that explains it. man, this problem vexed me for 3 weeks so happy that i finally figured it out. thanks for your help, it really set me on the right track.
21 replies
SSolidJS
Created by all_is_source_energy on 3/12/2025 in #support
Different routes using different layouts, while doing file based routing please?
i didn't see it mentioned in the articles (maybe it's not recommended?). the approach i've used is: <Router> <Route path="/" component={Home}> <Route path="/" component={LandingPage} /> <Route path="/login" component={Login} /> </Route> </Router> in my Home component I have the line below where I want the children to be: <div>{props.children}</div> You can create multiple group like this
12 replies
SSolidJS
Created by AK on 3/11/2025 in #support
SSG / Partial Hydration
got it, thanks
21 replies
SSolidJS
Created by AK on 3/11/2025 in #support
SSG / Partial Hydration
i get a blank page in the rendered side panel when I click the stackblitz link. how do i get it to render?
21 replies
SSolidJS
Created by AK on 3/11/2025 in #support
SSG / Partial Hydration
Thank you so much for digging into it. I'll look at partial hydration. On the symmetry part, for what it's worth, I added <Button/> in the home.jsx (so it's rendered on the server side too). The server rendered and the one hydrated on are the same with the exception of data-hk attribute. the server rendered has the attribute. the hydrated doesn't. I'll look at link you sent. thanks.
21 replies
SSolidJS
Created by AK on 3/11/2025 in #support
SSG / Partial Hydration
my actual entry-server is much more complicated where i ssg certain routes and not others, I only mention this here just in case, I do figure this out and someone else in the future has a similar need
21 replies
SSolidJS
Created by AK on 3/11/2025 in #support
SSG / Partial Hydration
* entery-server.jsx, renders home.jsx (ssg) * generate.js uses entry-server.js file to update index.html with the ssg output from home and injects the hydration scripts + client-entry.js * client-entry.js hydrates
21 replies
SSolidJS
Created by AK on 3/11/2025 in #support
SSG / Partial Hydration
use "npm run preview" to build and see the results. the button is not included in the initial Home.jsx file, instead there is a div placeholder but when the page loads, it properly renders it in the placeholder. but if i click it, nothing in the console
21 replies
SSolidJS
Created by AK on 3/11/2025 in #support
SSG / Partial Hydration
21 replies
SSolidJS
Created by AK on 3/11/2025 in #support
SSG / Partial Hydration
OK so I was able to create a sample project that represents the private repo.
21 replies
SSolidJS
Created by AK on 3/11/2025 in #support
SSG / Partial Hydration
thanks
21 replies
SSolidJS
Created by AK on 3/11/2025 in #support
SSG / Partial Hydration
it isn't. currently working on a private project
21 replies