Skip to content

fix: wrong check on isRunningLayout - #10078

Merged
NathanWalker merged 3 commits into
mainfrom
fix/isRunningLayout-check
Nov 9, 2022
Merged

NathanWalker merged 3 commits into
mainfrom
fix/isRunningLayout-check

Conversation

@edusperoni

@edusperoni edusperoni commented Nov 8, 2022 •

Copy link
Copy Markdown
Contributor

This is a fix on top of #10044 according to @CatchABus comments.

Turns out that setting the number to 0 was not working because iOS doens't call the constructor (uses alloc().init()) so the number started with undefined and then became NaN, which would make isRunningLayout always false.

This now introduces the correct behavior. (doesn't change anything in practice, as I've not been able to reproduce any scenario where isRunningLayout is true)

@cla-bot cla-bot Bot added the cla: yes label Nov 8, 2022
@edusperoni
edusperoni marked this pull request as ready for review November 8, 2022 16:24
@NathanWalker NathanWalker added this to the 8.4 milestone Nov 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants