slainless
slainless
Explore posts from servers
SSolidJS
Created by slainless on 12/10/2024 in #support
How to improve list rendering performance?
Ok, after some testing, looks like the list rendering itself is not the issue. Rather, it is caused by the store. Simply put, no matter how many matches are rendered, the app will still stutter when mutation occurs on the store with big input text Sorry for taking your time @Erik Demaine @bigmistqke and thanks for the input 👍
11 replies
SSolidJS
Created by slainless on 12/10/2024 in #support
How to improve list rendering performance?
Yes it seems the rendering is indeed the bottleneck in this case.
11 replies
SSolidJS
Created by slainless on 12/10/2024 in #support
How to improve list rendering performance?
Still the same condition when using Index. But this is without any code change, just simply swapping For with Index
11 replies
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