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
Sometimes you want to measure some DOM element and then immediately rerender and patch the DOM with a different. Currently, doing this in useEffect causes flickering since any rendering scheduled in useEffect will only be patched on the next animation frame, cause the incorrect state to be briefly painted by the browser. Consider adding a way to schedule a synchronous re-render and patch.
The text was updated successfully, but these errors were encountered:
i guess it can be done, however, the question has to be asked, what if we have async sub components?
to that, the first answer that comes to mind is to raise an error and limit the use of such a hook to cases where we have a sync component with only sync children.
Sometimes you want to measure some DOM element and then immediately rerender and patch the DOM with a different. Currently, doing this in useEffect causes flickering since any rendering scheduled in useEffect will only be patched on the next animation frame, cause the incorrect state to be briefly painted by the browser. Consider adding a way to schedule a synchronous re-render and patch.
The text was updated successfully, but these errors were encountered: