Skip to content

Commit

Permalink
fix: responsiveness initially incorrect
Browse files Browse the repository at this point in the history
  • Loading branch information
bbohlender committed Mar 13, 2024
1 parent 5ec6d1f commit 77ccda6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/uikit/src/flex/react.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ export function useDeferredRequestLayoutCalculation(): (node: FlexNode) => void
if (requestedNodeRef.current == null) {
return
}
requestedNodeRef.current.calculateLayout()
const node = requestedNodeRef.current
requestedNodeRef.current = undefined
node.calculateLayout()
})
return useCallback((node) => {
if (requestedNodeRef.current != null || node['yogaNode'] == null) {
Expand Down

0 comments on commit 77ccda6

Please sign in to comment.