Is there a way to combine the @addon-docs Args with the useState hooks? #11664
Unanswered
dmarcanoalxn
asked this question in
Help
Replies: 1 comment
-
I'd probably use Example: #3855 (comment) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm wondering if I could do something like the following. i.e. combining both the new Args and the useState hook:
As of now, this initially shows my modal (expected). When I click on its close button (executing its onClose function), the modal is closed (expected). Once I edit the active property from the @addon-docs props table the modal re-appears (expected), but when I click on its close button, the onClose function no longer alters the active state/prop.
Could anyone help me understand how to move on from here?☹️
Beta Was this translation helpful? Give feedback.
All reactions