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
On the first render, bounds is obviously filled with 0's.
Is it possible for the 2nd render, with the bounds object filled properly, to happen before the browser paints?
For example, given you want to sync two div's height, the following implementation (with react-use-measure) lets the browser paint after the first render, where the height is 0. Only the second render the synced div jumps to its correct height, which results in a flash.
On the first render,
bounds
is obviously filled with 0's.Is it possible for the 2nd render, with the
bounds
object filled properly, to happen before the browser paints?For example, given you want to sync two div's height, the following implementation (with
react-use-measure
) lets the browser paint after the first render, where the height is 0. Only the second render the synced div jumps to its correct height, which results in a flash.A component like this one, without
react-use-measure
works just fine, without the flash (properly).The text was updated successfully, but these errors were encountered: