dillon1000/react

Commit

Remove Agent addBridge: there can only be one bridge, add in constructor

Let's make impossible states truly impossible, and fix Flow types, too.

All three usages of Agent called addBridge right after constructing it.
Agent has one field `_bridge` which is force-typed as not-null despite
there's a temporary zone between the constructor end and addBridge start
where `_bridge` is null.
Browse files
Changed paths4 files
First-parent comparison
M shells/browser/shared/src/backend.js ModifiedM shells/dev/src/backend.js ModifiedM src/__tests__/setupTests.js ModifiedM src/backend/agent.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…