Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

2
Zustand state updating in one place but not another?
Post Flair (click to view more posts with a particular flair)
Post Body

Hi all,
I am using Zustand for state management in a todo app, and running into a problem. When I call `useStore` in the regular Todos component it works just fine (state updates as normal) but it does not update in the CompletedTodos component - both of which are using the same state.

CodeSandbox: https://codesandbox.io/s/zustand-todo-qbjdf3

What am I doing wrong here?

Author
Account Strength
90%
Account Age
4 years
Verified Email
Yes
Verified Flair
No
Total Karma
1,293
Link Karma
1,040
Comment Karma
240
Profile updated: 8 hours ago
Posts updated: 16 hours ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
2 years ago