How to have global state?

I want to set and read a state (the state will be an array of strings that is fetched when the user makes a search) from anywhere within the website(different routes). The information is temporary and can be deleted after the users session ended. reading the state needs to be really fast. I am kinda new to all of this. Is this a case for zustand?
3 Replies
Johnson
Johnson2y ago
I just want to say I read that one before posting, but I wasnt sure if my example also applied to this, so ty!
esponges
esponges2y ago
Yeah, it looks like Zustand or —god forbid— React Context
Want results from more Discord servers?
Add your server