michael
michael
Explore posts from servers
SSolidJS
Created by michael on 12/31/2023 in #support
How to define layout for index page?
shouldnt be too much of a hassle unless you have a billion pages
17 replies
SSolidJS
Created by michael on 12/31/2023 in #support
How to define layout for index page?
but yeah I just made my layout a component and used it on what I needed to use it
17 replies
SSolidJS
Created by michael on 12/31/2023 in #support
How to define layout for index page?
oops i didnt see you were asking a different question
17 replies
SSolidJS
Created by michael on 12/31/2023 in #support
How to define layout for index page?
I feel like the route group is the intended solution but it does not seem to work well at the root
17 replies
SSolidJS
Created by michael on 12/31/2023 in #support
How to wait for the value from a useAction?
not sure what the difference between all 3 ways is
7 replies
SSolidJS
Created by michael on 12/31/2023 in #support
How to wait for the value from a useAction?
I am learning so much!
7 replies
SSolidJS
Created by michael on 12/31/2023 in #support
How to wait for the value from a useAction?
oh you can also do it in an async function and use createResource
7 replies
SSolidJS
Created by michael on 12/31/2023 in #support
How to wait for the value from a useAction?
oh seems like you can also "use server" in cache
7 replies
SSolidJS
Created by michael on 12/31/2023 in #support
How to wait for the value from a useAction?
no, personally I needed to use an action because of CORS, but createAsync answers my original question.
const check = useAction(checkWhitepaper);
const result = createAsync(() => check(hostname));
const check = useAction(checkWhitepaper);
const result = createAsync(() => check(hostname));
7 replies
SSolidJS
Created by michael on 12/31/2023 in #support
How to wait for the value from a useAction?
Oh seems like I was supposed to use cache rather than an action, and then I use createAsync calling the cache?
7 replies
SSolidJS
Created by michael on 12/31/2023 in #support
How to define layout for index page?
i essentially want layout for only some root routes and not others, which is what made me think the route group folder would work.
17 replies
SSolidJS
Created by michael on 12/31/2023 in #support
How to define layout for index page?
this would then apply the layout to the 404 page in this example no?
17 replies
SSolidJS
Created by michael on 12/30/2023 in #support
How to set size of child element?
i suppose that makes sense
4 replies