⯁ 𝓥𝓪𝓵𝓮𝓻𝓲𝓮
⯁ 𝓥𝓪𝓵𝓮𝓻𝓲𝓮
SSolidJS
Created by ⯁ 𝓥𝓪𝓵𝓮𝓻𝓲𝓮 on 11/10/2024 in #support
how to manage global signals interacting with other global signals properly?
absolutely incredible. many thanks
17 replies
SSolidJS
Created by ⯁ 𝓥𝓪𝓵𝓮𝓻𝓲𝓮 on 11/10/2024 in #support
how to manage global signals interacting with other global signals properly?
yes, this seems so much more reasonable to me. this way, i can have global state wherever i need it to across files, with locality of behavior. and still ensure solid knows that these roots are globally scoped
17 replies
SSolidJS
Created by ⯁ 𝓥𝓪𝓵𝓮𝓻𝓲𝓮 on 11/10/2024 in #support
how to manage global signals interacting with other global signals properly?
OH suddenly what ive read online makes so much more sense. so for context: I have one file for simply loading in the page, that then reaches out to the main "App" component. I thought people were saying to throw state somehow inside of that call in there, but i think what you're saying, is that, there can be many roots, and have their own effects within? with ability to use a signal across both roots? as a result, any file which declared some global signal, need only wrap its effects in a root, solely for mutating that state?
17 replies
SSolidJS
Created by ⯁ 𝓥𝓪𝓵𝓮𝓻𝓲𝓮 on 11/10/2024 in #support
how to manage global signals interacting with other global signals properly?
@TaQuanMinhLong i havent interacted at all with the store yet. ill have to look into it more to understand 🙂
17 replies
SSolidJS
Created by ⯁ 𝓥𝓪𝓵𝓮𝓻𝓲𝓮 on 11/10/2024 in #support
how to manage global signals interacting with other global signals properly?
@REEEEE is there a way to tell solid to not emit the warning then? like i said, my intention is global state, at the root module which gets loaded in once. Im hesitant to reach for contexts as (to me, for what i tend to do) it seems like a heavy hammer for a small nail. The moment i reach for some type of abstraction (like you said having multiple instances of something), contexts to me make a lot more sense
17 replies
SSolidJS
Created by ⯁ 𝓥𝓪𝓵𝓮𝓻𝓲𝓮 on 11/10/2024 in #support
how to manage global signals interacting with other global signals properly?
and to be clear, it may entirely be the case that this simply isnt supported within solid. having helpers to get past things like previous state tracking might be the reality of the situation. "State must be atomic, never influenced by other state outside of a component." Id find it cumbersome, but it'd be reasonable of a framework to make a choice like that.
17 replies
SSolidJS
Created by ⯁ 𝓥𝓪𝓵𝓮𝓻𝓲𝓮 on 11/10/2024 in #support
how to manage global signals interacting with other global signals properly?
while i appreciate that, as i havent seen it before, i understand that there are solutions to this particular example, however, my question is about the broader concept of global signals interacting with other global signals. the example is meant to show two global signals needing interaction, as opposed to the specific use case. apologies if that was unclear
17 replies