lightzane
lightzane
SSolidJS
Created by lightzane on 7/4/2023 in #support
Solidjs and RxJS compatibility
Alright. Thanks for helping me find this documentation!
12 replies
SSolidJS
Created by lightzane on 7/4/2023 in #support
Solidjs and RxJS compatibility
12 replies
SSolidJS
Created by lightzane on 7/4/2023 in #support
Solidjs and RxJS compatibility
Thank you Alex! For example I want to have a global state that can be accessed by all components. In Angular, I use BehaviorSubject from RxJS.
What will be the equivalent for Solid in this scenario?
I can only see the Context can be used as an approach, but it seems when I have multiple context, it could lead to multiple nested context tags.. e.g.
<OneProvider>
<TwoProvider>
<ThreeProvider>
<App />
</ThreeProvider>
</TwoProvider>
</OneProvider>
<OneProvider>
<TwoProvider>
<ThreeProvider>
<App />
</ThreeProvider>
</TwoProvider>
</OneProvider>
And if I try to implement a global context, it seems that it may bloat the file and mixed all the states where we could group them. Or am I missing something for sure. I’m still exploring…
12 replies