fix breaking change in setMeasureFunc after emscripten migration #1219
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix-major-change"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
current
MeasureFunc
is stricter than the previous one and when it returns only one dimension object yoga throwTypeError: Missing field: "height"
orTypeError: Missing field: "width"
this is a breaking change and
@react-pdf
use this feature a lot, so i wanna return the previous behavior backcodesandbox with reproduction on
yoga-layout-prebuilt
: https://codesandbox.io/s/yoga-layout-measure-callback-wrong-data-1l9133@jacdebug has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.
@jacdebug merged this pull request in facebook/yoga@5496554cbf.
Pull request closed