cant set signal exported from a context

I've recreated a simple example based on my code: https://stackblitz.com/edit/solidjs-templates-dhbcft?file=src%2Fcomponents%2Fcontext.tsx,src%2Fcomponents%2FCardWrapper.tsx In context.tsx I have a signal inTransit which tells if some HTTP request is in progress. It works fine in the submit function which is in the context, but when I use setInTransit in a createEffect in another component (CardWrapper.tsx), it does not works as expected. What I expect is to keep seeing "Processing..." till the createEffect in CardWrapper.tsx is also done executing after clicking the submit button. Any help or hints would be appreciated, thanks!
StackBlitz
Solid InProgress Bug - StackBlitz
Vite + solid templates
3 Replies
bigmistqke
bigmistqke7mo ago
i guess it's due to async signals and async do not match well in an async effect, all signals after the first await will not auto-subscribe the effect
bigmistqke
bigmistqke7mo ago
the best explanation to the why is watching the implementation: https://www.youtube.com/watch?v=UhGV8yYnvQE
JavaScript Conferences by GitNation
YouTube
SolidJS: Reactivity Unchained – Ryan Carniato, JSNation 2022
JSNation Conference 2022 #JSNation #GitNation Website – https://jsnation.com/ Follow the link to watch the full version of all the conference talks, QnA’s with speakers and hands-on workshop recordings → https://portal.gitnation.org/events/jsnation-2022 Talk: SolidJS: Reactivity Unchained Join Ryan Carniato, creator of SolidJS, as he shows off...
uchiha_savior
uchiha_savior7mo ago
Thanks. Will take a look
Want results from more Discord servers?
Add your server
More Posts
Error: Hydration MismatchHello, I have an error with one of my plugin. I have always an issue with Hydration MisMatch. Can soPrevent a route component from running before the old routes `onCleanup` runsWhen I move from one page to another with the router, the flow seems to be: on `PageA` -> trigger mError: Hydration Mismatch with component from node_modulesHello, I have an issue with Solid-Start Hydration process. Everything is described on the github isBundled package breaks when used in PRODI am working on a package which provides hooks and components to be used in a Solid app. The packageBug with `solid-js/store` and `solid-primitives/history`I ran into a bug and reproduced it in this stackblitz. For some reason with this configuration of thClicking browser's Back button from external site doesn't render the right state**The problem occurs only in production, not in localhost.** When a user is redirected to an externhydration mismatch when wrapping component in a suspenseI am trying to render a loading ui when data is being collected on the server: ```tsx function Sectigetting route parameters seversideIs there a way to obtain route parameters on the serversides? I know that we can use useParam on tI can't seem to get ref bindings correctlyI'm trying to implement spatial-navigation in my app so I want to convert this package from Reactjs Running a script in a solid start projectHi, I'd like to run a script, to seed my db, in a solid start project. I thought id just be able to