Email or username:

Password:

Forgot your password?
Top-level
keithamus

@nmn need to `useEffect()` to use the methods. `ontoggle`, `onbeforetoggle` don't work. I think the latter is fixed in 19 but still now way to call `showPopover` or `showModal` without a hook AFAIK.

3 comments
Mayank

@keithamus @nmn where would you rather call `showPopover` and `showModal`? it's imperative code

keithamus

@mayank @nmn I dunno, but it’s a framework so shouldn’t it solve that for me rather than expecting me to use the escape hatches?

Naman

@keithamus You can call showPopover or showModal in a regular event handler function. Doesn’t need to be a hook.

Go Up