I'd like to dictate the direction of resizable container depending on the size of the screen. I _may_ be doing this the wrong way...
Relevant code snippets:
const { width } = useWindowDimensions();
...
<EuiResizableContainer direction={width <= 920 ? "vertical" : "horizontal"}> ....
As soon as it hits the threshold, The following error happens:

Just for clarification, width updates on a window resize.
I think the problem is that we're not watching for/reacting to changes in the direction prop at all levels. Could be as simple as introducing a useMemo or useEffect, but it could also be as complex as needing to reinitialize each panel.
Closing this in favor of #4555
Most helpful comment
Closing this in favor of #4555