dialectlabs / react

Home Page:https://react-notifications-solana.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

There is no option to detect does open model or close

AlekseiPetrovDev opened this issue · comments

@Kiryous @fsher during one of integration we found out that there is no ability to detect status of our modal. Some project want o implement for example custom backdrop.

Proposals: as easiest solution - add callback which will return actual state and will be triggered on setOpen action.

<NotificationsButton {...props} onStateChange={(isOpen) => {console.log(isOpen)}}

@AlekseiPetrovDev great point. I'm currently adding the ability to control overall opening/closing/managing dialect related windows. Should be added relatively soon.

Isn't it possible via checking UI state like ui.open and get UI from

const { ui, open, navigation } = useDialectUiId(
'dialect-bottom-chat'
)