Chris P Bacon
Chris P Bacon
SSolidJS
Created by tosiguru on 11/7/2024 in #support
useContext(someContext) returns undefined if the component is inside fallback prop for <Show ... />
<Show /> 's fallback expects an JSX.Element, so you want to "call" the component instead of passing it along. I am not sure if this would fix your issue, but hopefully it helps. so turn
<Show when={store.user} fallback={LoginScreen}>
<Show when={store.user} fallback={LoginScreen}>
into
<Show when={store.user} fallback={<LoginScreen />}>
<Show when={store.user} fallback={<LoginScreen />}>
2 replies
SSolidJS
Created by Chris P Bacon on 11/6/2024 in #support
Css modules not getting nonce attribute
well, I set the meta tag manually, but vite/solid still isn't adding any nonces. back to square one
3 replies
SSolidJS
Created by Mocha on 11/6/2024 in #support
Nested Stores not tracking with `trackDeep`/`trackStore`
I am not familiar with trackStore , but for my own case I just dumbly iterated the leafs of the tree so that everything is tracked in that scope. I suspect this is not how you are supposed to do it, but at least it works 😛 https://github.com/chris-kruining/calque/blob/dc30ebb35e36ea34ea7e368b4f3b5636aa1c0881/src/features/file/grid.tsx#L49
2 replies
SSolidJS
Created by Chris P Bacon on 11/6/2024 in #support
Css modules not getting nonce attribute
I think I got a step further. vite is actually attempting to set the nonce on the style elements. however the "trigger" for that is a meta tag with the name csp-nonce. And that one is missing. So now the next question is why is that
3 replies
SSolidJS
Created by ChrisThornham on 1/13/2024 in #support
How To Setup HTTPS on localhost
is there any update for this? or can someone explain to me why the mkcert plugin does not work? it works flawlessly for my analog app, so I had hoped it would work just as well for Start
4 replies