Closed yangshun closed 2 months ago
Hmm. I’m not generally a fan of providing redundant ways to do a something unless it’s a really common ask (and also difficult to do in user-space). It can make maintenance more difficult and can even make APIs/docs more confusing. In this case I’m inclined towards leaving things as-is, but I’ll leave the issue open for a couple of days to consider it.
I've given this some consideration and decided against it for two reasons:
Best to just add this in user space I think. :)
Thanks for considering it and for the explanation :)
Hi Brian, what do you think about providing a hook to consume a
PanelGroup
's internal state (dragState
) like whether the panel is being resized and the handle ID is being dragged? My use case is to disable certain interactions withinPanel
s when the groups are being resized.I could track that state myself using
onDragging
/onResize
prop but I feel it'd be useful for the library core to provide that information.