michael
michael
Explore posts from servers
SSolidJS
Created by michael on 12/31/2023 in #support
How to wait for the value from a useAction?
I am using useAction with a server action, but when I call the action it is returning a Promise, how do I wait for the Promise and display the result?
7 replies
SSolidJS
Created by michael on 12/31/2023 in #support
How to define layout for index page?
I am looking to define a shared layout for some pages, according to the docs it seems like you would do something like this, and it does work if you are navigating manually to the page, but clicking links to the pages show an error "Failed to fetch dynamically imported module" where its trying to find "/routes/about.tsx" instead of "routes/(home)/about.tsx" Is this a bug, or is there is another way to do it?
17 replies
SSolidJS
Created by michael on 12/30/2023 in #support
How to set size of child element?
I have this component:
export function NavigationBarItem(props: { icon: JSX.Element }) {
return <div class="m-4 h-8 w-8">{props.icon}</div>;
}
export function NavigationBarItem(props: { icon: JSX.Element }) {
return <div class="m-4 h-8 w-8">{props.icon}</div>;
}
How do I set the icons size?
4 replies