specific-silverS
Refine3y ago
7 replies
specific-silver

Drawer OnClose -- Additional function without overriding original behaviour?

Hi!

I'm using a <Drawer> that passes drawerProps in. Inside the drawerProps is a default onClose function that closes the window.

However, I'd like to call an additional function refetch() alongside it.

Directly setting onClose to refetch() overrides the original onClose function. Is there a way I could use both?
Was this page helpful?