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
Hi everybody, i had having a bug when i try to use a controlled drawer, its render twice the drawer content and idk why. any idea?
showContactInfo is a boolean on zustand.
<Drawer open={showContactInfo} onOpenChange={(open) => { dispatch([{ type: StateTypes.showContactInfo, value: open }]); }} direction="bottom" > <DrawerContent className="max-h-[90dvh] min-h-[40dvh] w-full min-w-full block bg-white"> <DrawerTitle className="sr-only" /> <ContantPanel hasAlerts={hasAlerts} contactInfo={contactInfo} onClose={() => dispatch([ { type: StateTypes.showContactInfo, value: false }, { type: StateTypes.backToContact, value: false }, ]) } onAlertsManagement={() => { dispatch([ { type: StateTypes.showContactInfo, value: false }, { type: StateTypes.showAlerts, value: true }, { type: StateTypes.backToContact, value: true }, ]); }} /> </DrawerContent> </Drawer>
The text was updated successfully, but these errors were encountered:
i found the bug is on onOpenChange, when i pass a setter from useState it works very well, so, does exist any way to use zustand with vaul ?
Sorry, something went wrong.
No branches or pull requests
Hi everybody, i had having a bug when i try to use a controlled drawer, its render twice the drawer content and idk why. any idea?
The text was updated successfully, but these errors were encountered: