You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I shrink the terminal width, the width value does not update. Similarly, if this component has a sibling that can change the layout and result in changing this component's width, the elements will render fine but the width value will not update. How can I tell when some change happens to the size of my element?
I have a onTerminalResize hook that solves half of this problem, but for non-terminal resize layout changes this is still an issue.
The yoga docs aren't too great so I took a look at the issues. There's a setDirtiedFunc: facebook/yoga#842
I tried this on boxRef.current.yogaNode and the function didn't exist. Not sure if dirtied state is even what I want.
And YGNodeGetHasNewLayout to detect if a node layout has been changed: facebook/yoga#681
But I couldn't find the function, so it looks like it was never added?
The text was updated successfully, but these errors were encountered:
Cool package, hoping to do some fun stuff with it.
I have the following component that measures width and prints it.
When I shrink the terminal width, the width value does not update. Similarly, if this component has a sibling that can change the layout and result in changing this component's width, the elements will render fine but the width value will not update. How can I tell when some change happens to the size of my element?
I have a onTerminalResize hook that solves half of this problem, but for non-terminal resize layout changes this is still an issue.
The yoga docs aren't too great so I took a look at the issues. There's a setDirtiedFunc: facebook/yoga#842
I tried this on
boxRef.current.yogaNode
and the function didn't exist. Not sure if dirtied state is even what I want.And YGNodeGetHasNewLayout to detect if a node layout has been changed: facebook/yoga#681
But I couldn't find the function, so it looks like it was never added?
The text was updated successfully, but these errors were encountered: