Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Clarify that updates after commit() is called but before promise resolution are sync #40

Closed
chrishtr opened this issue Jan 31, 2019 · 1 comment

Comments

@chrishtr
Copy link
Collaborator

Consider the following code:

element.displayLock.acquire(() => {
element.displayLock.commit();
element.offsetLeft;
}

In this situation, offsetLeft left would use the committed offsetLeft of the layout of the element. OTOH:

element.displayLock.acquire(() => {
element.offsetLeft;
}

Here offsetLeft would only be based on the intrinsic sizing of the element, not its surrounding context.

@vmpstr
Copy link
Collaborator

vmpstr commented Aug 21, 2019

deprecated by rendersubtree

@vmpstr vmpstr closed this as completed Aug 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants