Christopher Chedeau a7bd21ccf2
Avoid broadcasting what was just received (#1116)
Fixes #1115

The issue is that replaceAllElements calls a render synchronously, preventing lastBroadcastedOrReceivedSceneVersion from being set correctly.

I tried using batchUpdate but it only takes a single argument ( c5d2fc7127/packages/react-reconciler/src/ReactFiberWorkLoop.js (L1088) ) whereas the callback takes two.

Test Plan:
- Add a console.log before `this.broadcastScene("SCENE_UPDATE");` in App.tsx
- Connect a bunch of clients
- Have one move a shape
- Make sure that this client has the console logged
- Make sure the other clients don't have it
2020-03-28 21:25:40 -07:00
..
2020-03-27 14:12:27 +02:00
2020-03-26 18:28:26 +01:00
2020-03-23 16:38:41 -07:00
2020-03-27 14:12:27 +02:00
2020-02-21 08:17:20 -05:00
2020-03-23 16:38:41 -07:00
2020-03-23 16:38:41 -07:00
2020-01-02 11:03:48 -08:00
2020-02-11 23:19:43 +01:00
2020-02-07 18:42:24 +01:00
2020-01-20 14:59:00 -08:00
2020-03-23 16:38:41 -07:00
2020-01-24 12:04:54 +02:00