react/packages/shared
Andrew Clark 6b5deeed50
[Events] Add support for events that are both user-blocking and continuous (#15811)
* [Events] Add EventPriority enum

React DOM's DispatchConfig for synthetic events has an `isDiscrete`
field that affects how updates triggered by an event are scheduled.
Events are either discrete or continuous.

This commit adds an additional type of configuration where an event
has user-blocking priority, but is not discrete. E.g. updates triggered
by hover are more important than the default, but they don't need to
be processed serially. Because there are now three types of event
priority instead of two, I've replaced the `isDiscrete` boolean with an
enum: `eventPriority`.

This commit implements the new enum value but does not change any
behavior. I'll enable it behind a feature flag in the next commit.

I've only implemented this in the legacy event system. I'll leave Flare
for a follow-up.

* enableUserBlockingEvents feature flag

Adds a feature flag to increase the priority of events like `mouseover`,
without making them discrete.
2019-06-04 13:35:52 -07:00
..
__tests__ Fork ReactSharedInternals for UMD builds (#15617) 2019-05-10 13:51:39 -07:00
forks [Events] Add support for events that are both user-blocking and continuous (#15811) 2019-06-04 13:35:52 -07:00
ExecutionEnvironment.js give `canUseDOM` with a possibility to be a constant (#14194) 2019-04-25 11:28:53 +01:00
HostConfigWithNoHydration.js Add full TouchHitTarget hit slop (experimental event API) to ReactDOM (#15308) 2019-04-06 07:51:21 +01:00
HostConfigWithNoMutation.js Hide timed-out children instead of deleting them so their state is preserved (#13823) 2018-10-18 15:37:16 -07:00
HostConfigWithNoPersistence.js Add full TouchHitTarget hit slop (experimental event API) to ReactDOM (#15308) 2019-04-06 07:51:21 +01:00
ReactElementType.js Drop the year from Facebook copyright headers and the LICENSE file. (#13593) 2018-09-07 15:11:23 -07:00
ReactError.js Compile invariant directly to throw expressions (#15071) 2019-03-18 13:58:03 -07:00
ReactErrorProd.js Compile invariant directly to throw expressions (#15071) 2019-03-18 13:58:03 -07:00
ReactErrorUtils.js Drop the year from Facebook copyright headers and the LICENSE file. (#13593) 2018-09-07 15:11:23 -07:00
ReactFeatureFlags.js [Events] Add support for events that are both user-blocking and continuous (#15811) 2019-06-04 13:35:52 -07:00
ReactInstanceMap.js Drop the year from Facebook copyright headers and the LICENSE file. (#13593) 2018-09-07 15:11:23 -07:00
ReactLazyComponent.js Unfork Lazy Component Branches (#13902) 2018-10-19 22:22:45 -07:00
ReactPortal.js Drop the year from Facebook copyright headers and the LICENSE file. (#13593) 2018-09-07 15:11:23 -07:00
ReactRootTags.js Add Batched Mode (#15502) 2019-05-13 14:30:39 -07:00
ReactSharedInternals.js Add withSuspenseConfig API (#15593) 2019-05-16 16:51:18 -07:00
ReactSideEffectTags.js Defer useEffect until after paint 2018-10-29 11:26:53 -07:00
ReactSymbols.js Remove <ConcurrentMode /> (#15532) 2019-05-13 16:10:00 -07:00
ReactTreeTraversal.js Drop the year from Facebook copyright headers and the LICENSE file. (#13593) 2018-09-07 15:11:23 -07:00
ReactTypes.js [Flare] Deeply prevent default on anchor elements (#15750) 2019-05-28 12:46:07 +01:00
ReactVersion.js Update versions for 16.8.6 2019-03-27 23:58:16 -07:00
ReactWorkTags.js Adds experimental event API scaffolding (#15108) 2019-03-14 17:02:42 +00:00
describeComponentFrame.js Drop the year from Facebook copyright headers and the LICENSE file. (#13593) 2018-09-07 15:11:23 -07:00
enqueueTask.js Prevent bundling of Node polyfills when importing TestUtils/TestRenderer (#15305) 2019-04-03 16:12:31 +01:00
getComponentName.js [Flare] event component displayName is now mandatory (#15717) 2019-05-23 01:29:07 +01:00
invariant.js Compile invariant directly to throw expressions (#15071) 2019-03-18 13:58:03 -07:00
invokeGuardedCallbackImpl.js fix spelling mistakes (#14805) 2019-02-09 16:43:49 -08:00
isTextInputElement.js Drop the year from Facebook copyright headers and the LICENSE file. (#13593) 2018-09-07 15:11:23 -07:00
isValidElementType.js Adds experimental event API scaffolding (#15108) 2019-03-14 17:02:42 +00:00
lowPriorityWarning.js Drop the year from Facebook copyright headers and the LICENSE file. (#13593) 2018-09-07 15:11:23 -07:00
objectIs.js Separate Object.is polyfill (#14334) 2019-01-08 14:21:12 +00:00
package.json Drop Haste (#11303) 2017-10-25 02:55:00 +03:00
shallowEqual.js Separate Object.is polyfill (#14334) 2019-01-08 14:21:12 +00:00
warning.js Drop the year from Facebook copyright headers and the LICENSE file. (#13593) 2018-09-07 15:11:23 -07:00
warningWithoutStack.js Use Function.prototype.apply in warningWithoutStack (#14107) 2018-11-05 11:11:33 -08:00