Joe Pea
Joe Pea
SSolidJS
Created by aquarazorda on 5/7/2023 in #support
SSR, Reactivity of Signals on onMount
Hmm nvm this is a bit old, maybe not
9 replies
SSolidJS
Created by aquarazorda on 5/7/2023 in #support
SSR, Reactivity of Signals on onMount
@ryansolid is this possibly related to #onMount randomly not called ?
9 replies
SSolidJS
Created by Katja (katywings) on 8/20/2024 in #support
onMount randomly not called
I'm still getting stuff not running. What I can confirm though is that if I make a small change to a file in dev mode, the HMR causes things to finally run and everything gets into place as expected. Its just the initial load not working, but after I've triggered HMR the app goes ahead and works fine. If I set ssr: false, no problem, so for now I've got a client-only app and technically I could just go without Solid Start altogether in this case.
130 replies
SSolidJS
Created by raf on 8/30/2024 in #support
Cannot build SSG
I'm guessing that if you made a vite.resolve.alias config, then you will also need to configure that for other cases. Vite is only for dev mode I believe. Maybe you can put an importmap in your app to set the aliases for other modes. Or better yet, don't use the alias for now, get it working with just relative paths first, then go from there. The thing is, Solid Start is built on 3rd-party build tools, so it cannot guess everything you want to do for all tools based on the config for any one tool. F.e., if you configure vite.resolve.alias, then you'll also need to configure paths in tsconfig for TypeScript, etc, etc, etc.
5 replies
SSolidJS
Created by raf on 8/30/2024 in #support
Cannot build SSG
"does not provide an export" What's the rest of the error?
5 replies
SSolidJS
Created by Katja (katywings) on 8/20/2024 in #support
onMount randomly not called
Not sure if this provides any good clue, but I was able to trigger effects not running with this: https://github.com/solidjs/solid-start/issues/1614
130 replies
SSolidJS
Created by Katja (katywings) on 8/20/2024 in #support
onMount randomly not called
I wonder if this is related to what I've been experiencing in https://discord.com/channels/722131463138705510/910635844119982080/1277514473611202581 and possibly https://discord.com/channels/722131463138705510/1273412699530858527 (EDIT: the second one seems like another issue)
130 replies
SSolidJS
Created by Joe Pea on 8/25/2024 in #support
how to make SSG use dynamic client-side routing instead of full page refresh?
same issue with npx serve .output/public. looks like there's an issue in the .output
35 replies
SSolidJS
Created by Joe Pea on 8/25/2024 in #support
how to make SSG use dynamic client-side routing instead of full page refresh?
Here's what I see:
35 replies
SSolidJS
Created by Joe Pea on 8/25/2024 in #support
how to make SSG use dynamic client-side routing instead of full page refresh?
whaaaaa
35 replies
SSolidJS
Created by Joe Pea on 8/25/2024 in #support
how to make SSG use dynamic client-side routing instead of full page refresh?
Hmm, I deleted package-lock and node_modules right before making that repro, created package lock fresh with npm install
35 replies
SSolidJS
Created by Joe Pea on 8/25/2024 in #support
how to make SSG use dynamic client-side routing instead of full page refresh?
Oh, how can that make a difference?
35 replies
SSolidJS
Created by Joe Pea on 8/25/2024 in #support
how to make SSG use dynamic client-side routing instead of full page refresh?
You said you changed package lock? Do I need to update deps for it to work?
35 replies
SSolidJS
Created by Joe Pea on 8/25/2024 in #support
how to make SSG use dynamic client-side routing instead of full page refresh?
35 replies
SSolidJS
Created by Joe Pea on 8/25/2024 in #support
how to make SSG use dynamic client-side routing instead of full page refresh?
Because in that case solid-js does not export the same things as in browser
35 replies
SSolidJS
Created by Joe Pea on 8/25/2024 in #support
how to make SSG use dynamic client-side routing instead of full page refresh?
Hmm, really the main issue is if you just put import 'lume' at the top of the module, that breaks during build.
35 replies
SSolidJS
Created by Joe Pea on 8/25/2024 in #support
how to make SSG use dynamic client-side routing instead of full page refresh?
f.e.
import type {Scene} from 'lume'

//...
const [Scene, setScene] = createSignal<typeof Scene>()
setScene(await import('lume'))
import type {Scene} from 'lume'

//...
const [Scene, setScene] = createSignal<typeof Scene>()
setScene(await import('lume'))
or similar
35 replies
SSolidJS
Created by Joe Pea on 8/25/2024 in #support
how to make SSG use dynamic client-side routing instead of full page refresh?
yeah, it's just cumbersome because I need to set the types of the variables that I will import
35 replies
SSolidJS
Created by Joe Pea on 8/25/2024 in #support
how to make SSG use dynamic client-side routing instead of full page refresh?
Wish just regular import would work, but that has some issues to iron out, f.e. it imports some things from solid-js/web that don't exist when running in Node.js
35 replies
SSolidJS
Created by Joe Pea on 8/25/2024 in #support
how to make SSG use dynamic client-side routing instead of full page refresh?
But also that gets a little tricky when we need to do this:
let Scene
if (globalThis.window?.document) {
;({Scene/*, etc*/} = await import('lume'))
}
let Scene
if (globalThis.window?.document) {
;({Scene/*, etc*/} = await import('lume'))
}
35 replies