TaQuanMinhLong
TaQuanMinhLong
SSolidJS
Created by bitobeats on 11/21/2024 in #support
Throw vs return in router’s action
i personally go with throw redirect
5 replies
SSolidJS
Created by bitobeats on 11/21/2024 in #support
Throw vs return in router’s action
:Worry_PatKEK:
5 replies
SSolidJS
Created by bitobeats on 11/21/2024 in #support
Throw vs return in router’s action
just simply choose one that works
5 replies
SSolidJS
Created by Eatham on 11/18/2024 in #support
`useNavigate` inside an `action`?
4 replies
SSolidJS
Created by Eatham on 11/18/2024 in #support
`useNavigate` inside an `action`?
i think in action you can just throw redirect instead
4 replies
SSolidJS
Created by Cyber Grandma on 11/12/2024 in #support
Submission not reactive in JSX ?
Have you tried
<Show
when={submission.pending}
fallback={"No"}
>
Yes
</Show>
<Show
when={submission.pending}
fallback={"No"}
>
Yes
</Show>
3 replies
SSolidJS
Created by Lightsyr (Leandro Campos) on 11/12/2024 in #support
Problems to acess objects inside an array
So for adding inventory, just simply
setSpaceShip("inventory", "resource", resource.name, resource.quantity)
setSpaceShip("inventory", "resource", resource.name, resource.quantity)
6 replies
SSolidJS
Created by Lightsyr (Leandro Campos) on 11/12/2024 in #support
Problems to acess objects inside an array
Then if you need to get all in inventory, run a for in loop (loop keys) to get all resource
6 replies
SSolidJS
Created by Lightsyr (Leandro Campos) on 11/12/2024 in #support
Problems to acess objects inside an array
I think you can fix your resource type to Record<string, number> instead
6 replies
SSolidJS
Created by ⯁ 𝓥𝓪𝓵𝓮𝓻𝓲𝓮 on 11/10/2024 in #support
how to manage global signals interacting with other global signals properly?
Just do it 🤣
17 replies
SSolidJS
Created by ⯁ 𝓥𝓪𝓵𝓮𝓻𝓲𝓮 on 11/10/2024 in #support
how to manage global signals interacting with other global signals properly?
Just make a store instead, so you can interact as many signals as you need
17 replies
SSolidJS
Created by ⯁ 𝓥𝓪𝓵𝓮𝓻𝓲𝓮 on 11/10/2024 in #support
how to manage global signals interacting with other global signals properly?
17 replies
SSolidJS
Created by ⯁ 𝓥𝓪𝓵𝓮𝓻𝓲𝓮 on 11/10/2024 in #support
how to manage global signals interacting with other global signals properly?
You can take a look at using createEffect with on, this already has built-in previous state tracking
17 replies
SSolidJS
Created by Ximaz on 11/6/2024 in #support
pnpm and ffmpeg-static
Using pnpm is also the same, except it is placed in the node_modules folder
21 replies
SSolidJS
Created by Ximaz on 11/6/2024 in #support
pnpm and ffmpeg-static
Just put it to gitignore and have a simple script to download it and setup
21 replies
SSolidJS
Created by Ximaz on 11/6/2024 in #support
pnpm and ffmpeg-static
pnpm is just a tool, not a forceful way of how things should be executed
21 replies
SSolidJS
Created by Ximaz on 11/6/2024 in #support
pnpm and ffmpeg-static
I think what you need to consider is that "does ffmpeg-fluent need ffmpeg-static, or what it needs is just the path-to-ffmpeg-binary"
21 replies
SSolidJS
Created by Ximaz on 11/6/2024 in #support
pnpm and ffmpeg-static
:confusednick:
21 replies
SSolidJS
Created by Ximaz on 11/6/2024 in #support
pnpm and ffmpeg-static
It's just kinda weird when it said static but it isn't
21 replies
SSolidJS
Created by Ximaz on 11/6/2024 in #support
pnpm and ffmpeg-static
For example, Your project is at /home/you/your-project Then put your binary somewhere within it like .bin/ffmpeg Then specify inside the .env file FFMPEG_BIN=/home/you/your-project/.bin/ffmpeg then load the .env file when running your dev server Access the path with process.env.FFMPEG_BIN
21 replies