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
I cannot update Badge action by state
below
const [isMuted, setIsMuted] = useState(false); useEffect(() => { setTimeout(() => setMuted(prev => !prev), 1000); }, []) return ( <Badge action={isMuted ? 'muted' : 'info'}> <BadgeText>test badge</Badge> </Badge> )
1.1.39
No response
The text was updated successfully, but these errors were encountered:
Had the same issue trying to use state for updates. A workaround is to set a key prop that changes with state - forces a new component render.
Sorry, something went wrong.
No branches or pull requests
Description
I cannot update Badge action by state
CodeSandbox/Snack link
below
Steps to reproduce
gluestack-ui Version
1.1.39
Platform
Other Platform
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: