Harris
Explore posts from serversTTCTheo's Typesafe Cult
•Created by Harris on 11/13/2023 in #questions
Zustand state being triggered server side even though I have "use client"?
already did! 😄
28 replies
TTCTheo's Typesafe Cult
•Created by Harris on 11/13/2023 in #questions
Zustand state being triggered server side even though I have "use client"?
ty for the pointers
28 replies
TTCTheo's Typesafe Cult
•Created by Harris on 11/13/2023 in #questions
Zustand state being triggered server side even though I have "use client"?
and it works great! no error 🙂
28 replies
TTCTheo's Typesafe Cult
•Created by Harris on 11/13/2023 in #questions
Zustand state being triggered server side even though I have "use client"?
and then just set the zustand store volume based on what the client returns
28 replies
TTCTheo's Typesafe Cult
•Created by Harris on 11/13/2023 in #questions
Zustand state being triggered server side even though I have "use client"?
28 replies
TTCTheo's Typesafe Cult
•Created by Harris on 11/13/2023 in #questions
Zustand state being triggered server side even though I have "use client"?
I ended up moving it into my setupAudio function which only runs client side based on the store init effect
28 replies
TTCTheo's Typesafe Cult
•Created by Harris on 11/13/2023 in #questions
Zustand state being triggered server side even though I have "use client"?
need to really deep dive the use client stuff more for a better understanding
28 replies
TTCTheo's Typesafe Cult
•Created by Harris on 11/13/2023 in #questions
Zustand state being triggered server side even though I have "use client"?
beautiful, will try that out right now, ty
28 replies
TTCTheo's Typesafe Cult
•Created by Harris on 11/13/2023 in #questions
Zustand state being triggered server side even though I have "use client"?
and into the store initalizer component that has my useEffect
28 replies
TTCTheo's Typesafe Cult
•Created by Harris on 11/13/2023 in #questions
Zustand state being triggered server side even though I have "use client"?
i guess I move my localStorage code out of zustand
28 replies
TTCTheo's Typesafe Cult
•Created by Harris on 11/13/2023 in #questions
Zustand state being triggered server side even though I have "use client"?
oh! wait
28 replies
TTCTheo's Typesafe Cult
•Created by Harris on 11/13/2023 in #questions
Zustand state being triggered server side even though I have "use client"?
same with localstorage
28 replies
TTCTheo's Typesafe Cult
•Created by Harris on 11/13/2023 in #questions
Zustand state being triggered server side even though I have "use client"?
that's true, but in this case I'm trying to handle a websocket & audiocontext which only really works client side I think? I don't think those can communicate nicely between boundary layers
28 replies
TTCTheo's Typesafe Cult
•Created by Harris on 11/13/2023 in #questions
Zustand state being triggered server side even though I have "use client"?
i see, what would be the best approach in regards to wanting zustand to only want client side?
28 replies