ⱼ ₒ ₑ
useContext is undefined
Wrapped in a function with a throw, and it throws an error no matter what
I've verified it's wrapped in a provider, and the context set-up is identical to the other providers
It's not even being used, simply calling the function throws the error
This is the context set-up:
Every time I log at all stages nothing is null or not working, SettingsContext seems to be defined fine, but useContext breaks and returns undefined
It's wrappped in a provider in the global app
I'm not super experienced with context, is there something I'm missing? Is it the fact that the value is an object?
36 replies
Solid Start Vinxi complaining about public and can't resolve public fonts
When I define my font faces and reference the actual font files like so:
It does not complain but when building it will state it can't resolve it.
If I do:
It will resolve but complain endlessly when doing a dev server
I used Astro with the root and had no issues
What am I doing wrong?
8 replies
Solid Start HMR not rebuilding styles on class change
Use tailwind 4.0, change class of JSX component while dev server is running, HMR reloads component but tailwind is not rebuilt to actually style the class
How could I fix this? In vite config?
7 replies
How to use server function & suspense
I will be frank, I have some experience with React but this is my first dive into Solid coming from Astro
I'm trying to have a fallback loading component, that is replaced by data fetched from the server when available
I figured the best way to do this was an asynchronous server function, I am not claiming there is a bug I think I just did something wrong
Here is my high-level code since I can't really share more:
9 replies