slainless
slainless
Explore posts from servers
SSolidJS
Created by seigo2016 on 6/18/2024 in #support
How to make full static generation
correction: load function is not available when using filerouter 😦
15 replies
SSolidJS
Created by seigo2016 on 6/18/2024 in #support
How to make full static generation
Logically speaking, load function should be the closest thing you want since it will make page rendering idempotent and simple, just like in nextjs, remix, or gatsby. But again, i haven't tried SSG yet, so yeah
15 replies
SSolidJS
Created by seigo2016 on 6/18/2024 in #support
How to make full static generation
if its not working as expected, then try to use route load function instead https://docs.solidjs.com/solid-router/reference/load-functions/load
15 replies
SSolidJS
Created by seigo2016 on 6/18/2024 in #support
How to make full static generation
15 replies
SSolidJS
Created by seigo2016 on 6/18/2024 in #support
How to make full static generation
trial and error haha
15 replies
SSolidJS
Created by seigo2016 on 6/18/2024 in #support
How to make full static generation
idk the implication though, will solid runtime purge the initially rendered html because post resource will be empty on client...
15 replies
SSolidJS
Created by seigo2016 on 6/18/2024 in #support
How to make full static generation
is the post fully rendered/hydrated on the generated files? if yes, then i think the last thing you need is to use isServer to prevent the fetch from running in the client
15 replies
SSolidJS
Created by seigo2016 on 6/18/2024 in #support
How to make full static generation
But if you are asking how to predefined "id", then idk
15 replies
SSolidJS
Created by seigo2016 on 6/18/2024 in #support
How to make full static generation
Haven't tried SSG yet but i think the intended approach here is to use solidjs provided method
15 replies
SSolidJS
Created by seigo2016 on 6/18/2024 in #support
How to make full static generation
How do you call the fetcher function? Try wrap the function call in createAsync or use solid router's load function
15 replies
SSolidJS
Created by slainless on 6/17/2024 in #support
Help with context and storybook
many thanks for your help man 🙏
16 replies
SSolidJS
Created by slainless on 6/17/2024 in #support
Help with context and storybook
aha
16 replies
SSolidJS
Created by slainless on 6/17/2024 in #support
Help with context and storybook
wait, so what is the equivalent of
<ThemeContext.Provider value={themeSignal}>
<Story />
</ThemeContext.Provider>
<ThemeContext.Provider value={themeSignal}>
<Story />
</ThemeContext.Provider>
in non JSX?
16 replies
SSolidJS
Created by slainless on 6/17/2024 in #support
Help with context and storybook
forgot to pass the value, haha so dumb
16 replies
SSolidJS
Created by slainless on 6/17/2024 in #support
Help with context and storybook
eh nvm
16 replies
SSolidJS
Created by slainless on 6/17/2024 in #support
Help with context and storybook
well, i tried with jsx though but still not getting the value
16 replies
SSolidJS
Created by slainless on 6/17/2024 in #support
Help with context and storybook
ah is that so
16 replies
SSolidJS
Created by slainless on 6/17/2024 in #support
Help with context and storybook
wait...
16 replies
SSolidJS
Created by slainless on 6/17/2024 in #support
Help with context and storybook
use theme signal impl:
export function useThemeSignal() {
return useContext(ThemeContext)
}
export function useThemeSignal() {
return useContext(ThemeContext)
}
16 replies
SSolidJS
Created by slainless on 5/25/2024 in #support
Which way to go? Solid Router's action or SolidStart server function
anyway, thank you for your time
9 replies