mirror of
https://github.com/status-im/react-native.git
synced 2025-01-10 01:25:39 +00:00
f916ec26a6
Summary: There is no point in dispatching to main thread if there is nothing to do there. This place gets called basically any time a repeating js timer fires, which doesn't imply UI changes (although usually that's why people setup timers). Combined with previous diffs that makes us not generate empty blocks (nil instead), this could be minor perf win in some rare cases. This also changes semantic of `reactBridgeDidFinishTransaction` call a bit. Previously it was done no matter if UI has changed or not. I think it should be safe, since seems like callees really care only about views being laid out. Depends on D2571166. (not strictly speaking) public Reviewed By: jspahrsummers, nicklockwood Differential Revision: D2571188 fb-gh-sync-id: 02d52e4615475072c3c27226e67c431a667ec990