marian
marian
Explore posts from servers
TTCTheo's Typesafe Cult
Created by marian on 6/30/2023 in #questions
Create a global "reactive" variable
Hello everyone, I want to have a global variable which is available both on client side components as well as server side components. Is this possible? My variable stores translations. I want to avoid passing them down as props but I can't figure out a way to make them available in every component. It's important that the value gets initialized on the server, because I read the data by using the file system. Also I'd like to be able to change the variable and with it all components using the variable should get updated. Thanks in advance!
7 replies