62cd5af08e
Prior to #26347, our internal `act` API (not the public API) behaved differently depending on whether the scope function returned a promise (i.e. was an async function), for historical reasons that no longer apply. Now that this is fixed, I've codemodded all async act scopes that don't contain an await to be sync. No pressing motivation other than it looks nicer and the codemod was easy. Might help avoid confusion for new contributors who see async act scopes with nothing async inside and infer it must be like that for a reason. |
||
---|---|---|
.. | ||
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.