For the modal hooks, please return the status of the modal along with the openModal function. #768
mikefortney
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In order to react to the state of any of the modals, in my example the connect modal, it would be great to get that status from the hook. Currently, I have a custom render button in my
_app.tsx
that just renders an empty fragment and lives inside adisplay:none
div that updates a context state variable with theconnectModalOpen
value. If the useConnectModal hook returned theconnectModalOpen
(orisOpen
) variable, I wouldn't need that extra custom render button component.Thanks!
Beta Was this translation helpful? Give feedback.
All reactions