SolidJSS
SolidJSโ€ข2y agoโ€ข
10 replies
Grahf

no luck with context providers

~hello... I'm trying to use a context provider in a tauri app(maybe you're familiar with it?) and it's not working. The last time I tried to use a solidJS context provider was in a astroJS app. I seem to be getting the exact same behavior here IIRC. It gets the initial values from the createContext and that's it... I can't seem to get the signals in the provider to update.

I made a stack blitz that's very similar to what I'm trying to do and it works fine. Not sure why it doesn't work in my app.

https://stackblitz.com/edit/solid-app-gn3dpd?file=src%2Findex.jsx,src%2FApp.jsx,src%2FProvider.jsx,src%2FHelloWorld.jsx
StackBlitz
Vite + solid templates
Solidjs App (forked) - StackBlitz
Was this page helpful?