Closed StringKe closed 2 years ago
I think it's a problem with the Box
component, not with mobx.
I haven't worked with chakra-ui, but I suppose you may use this approach to attach ref to the components https://chakra-ui.com/guides/as-prop#option-1-using-forwardref-from-chakra-uireact
P.S. I'm sure you already solved the problem, but anyway, let me know if you need any additional help
I try to store the width and height in mobx, once I call the action of mobx, the resize method will not be triggered again.
You can view this video. https://cln.sh/1jXA3l