i 'm using zustand for state in my next js app i currently have one store holding state of different parts of the application first question is there any issue with this implementation , second i wanted to edit a message in my chat app i wanted to display a input element instead of the message so the user can edit the message given my implementation here are my options 1 ) pass down a setState function to toggle an editing state requires about 2 levels of prop drilling 2 ) i can give each message in the state a property to toggle editing 3 ) create a context for the messages that has a isEditing state that can be used to toggle to an input component
#should i have a sepreate slice for different part of the zustand state
1 messages · Page 1 of 1 (latest)
🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord
🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize
✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)