Why isn't my state updating #2983
Unanswered
itzcodex24
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone, I am using React JS. I have an issue with Zustand.
This is my
store.ts
fileThis is my
useStore.ts
file/hookThis is inside my
App.tsx
The first time the
focusedApp
is changed, the change is also reflected on the UI. However, when I call theopenApplication
&focusApplication
functions, the state is updated correctly. However, when calling thecloseApplication
function, the UI is no longer being updatedP.S: What I have provided here is very minimal compared to the rest of my code. Addionally, there a more properties as part of the
store.ts
file and there is more content being displayed as part of theApp.tsx
file. I have only added what I think is relevant here.Beta Was this translation helpful? Give feedback.
All reactions