This mode is going to be the new default in Flow going forward.
There was an unfortuante large number of suppressions in this update.
More on the changes can be found in this [Flow blog post](https://medium.com/flow-type/new-flow-language-rule-constrained-writes-4c70e375d190).
Added some of the required annotations using the provided codemod:
```sh
node_modules/.bin/flow codemod annotate-declarations --write .
```
ghstack-source-id:
|
||
|---|---|---|
| .. | ||
| npm | ||
| shim | ||
| src | ||
| README.md | ||
| index.js | ||
| package.json | ||
| with-selector.js | ||
README.md
use-sync-external-store
Backwards-compatible shim for React.useSyncExternalStore. Works with any React that supports Hooks.
See also https://github.com/reactwg/react-18/discussions/86.