dillon1000/react

Commit

[Bugfix] Pending state is always user-blocking (#17382)

Fixes a bug where `isPending` is only set to `true` if `startTransition`
is called from inside an input event. That's usually the case, but
not always.

Now it works regardless of where you call it.
Browse files
Changed paths2 files
First-parent comparison
M packages/react-reconciler/src/ReactFiberHooks.js ModifiedA packages/react-reconciler/src/__tests__/ReactTransition-test.internal.js Added
Patch

Files changed

Rendering syntax-highlighted changes…