SolidJSS
SolidJSโ€ข2y agoโ€ข
2 replies
Esperida

Save global var in SolidJS

Hi everyone, I m new with SolidJS and I'm trying to make an event handler but I have some difficulty.
Is it possible to define a global variable in the client to save a User connection token and reuse it on every component as i want. For now i only know do it by pass it on params of all my components one by one.
Does it existe a best way to do that
Thanks in advance
Was this page helpful?