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-01-15 07:42:02 -08:00
2020-03-26 18:28:26 +01:00
2020-03-26 18:28:26 +01:00
2020-03-26 18:28:26 +01:00
2020-01-15 07:42:02 -08:00
2020-03-16 19:07:47 -07:00
2020-03-11 14:48:27 -07:00
2020-03-18 13:27:10 +01:00
2020-03-07 16:20:38 +01:00
2020-01-15 07:42:02 -08:00
2020-01-24 12:04:54 +02:00