We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently, the isAdmin state is being managed inconsistently across the codebase. This inconsistency causes issues such as:
isAdmin
The text was updated successfully, but these errors were encountered:
Assigned to me bhaiya! Will learn and try to complete as soon as possible!
Sorry, something went wrong.
Adit-K06
No branches or pull requests
Problem Description
Currently, the
isAdmin
state is being managed inconsistently across the codebase. This inconsistency causes issues such as:isAdmin
state changes.Proposed Solution
isAdmin
state.isAdmin
state subscribe to it via the Zustand store.isAdmin
state changes, all subscribed components should rerender automatically to reflect the updated state.Expected Behavior
isAdmin
state (e.g., during login or logout), all relevant components should react to the change and update accordingly.Steps to Implement
isAdmin
state to the Zustand store.isAdmin
state management in components with the Zustand implementation.isAdmin
state changes.The text was updated successfully, but these errors were encountered: