Repository navigation
feat: modern event subsystem - #1945
Draft
mdjastrzebski wants to merge 8 commits into
Draft
mdjastrzebski wants to merge 8 commits into
mdjastrzebski wants to merge 8 commits into
Conversation
| if (Object.hasOwn(target, key) && isObject(sourceValue) && isObject(targetValue)) { | ||
| mergeInto(targetValue, sourceValue); | ||
| } else { | ||
| target[key] = sourceValue; |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1945 +/- ##
==========================================
+ Coverage 98.56% 98.92% +0.35%
==========================================
Files 87 105 +18
Lines 1745 2318 +573
Branches 478 610 +132
==========================================
+ Hits 1720 2293 +573
Misses 24 24
Partials 1 1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
mdjastrzebski
force-pushed
the
next/event-system
branch
from
October 12, 2026 10:58
0b69f6b to
b561465
Compare
mdjastrzebski
marked this pull request as ready for review
October 13, 2026 20:28
mdjastrzebski
marked this pull request as draft
October 19, 2026 10:14
^ Conflicts: ^ src/events/__tests__/fire-event.test.tsx ^ src/user-event/type/__tests__/type.test.tsx
mdjastrzebski
force-pushed
the
next/event-system
branch
from
October 19, 2026 11:50
51d6dcb to
42703a0
Compare
mdjastrzebski
force-pushed
the
next/event-system
branch
from
October 19, 2026 11:50
42703a0 to
6b5a39a
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Merges the
next/event-systemfeature branch (#1944, #1946) intomain.Adds an
'modern'event system forfireEventanduserEvent, opt-in withconfigure({ unstable_eventSystem: 'modern' }). It follows React Native's event dispatch: handlers receive aSyntheticEvent, and events bubble or go direct like on a device.fireEvent, includingfireEvent.press(), which calls the press callback of the element that becomes the touch responder (Pressable,Touchable*).userEvent.press()/longPress()with it, so both press the same element.'legacy'stays the default and behaves as before. Its code moves tosrc/events/legacy/, with code used by both systems insrc/events/shared/.legacyandmodernprojects) against shared snapshots.Test plan
yarn validate(typecheck, tests in both Jest projects, lint, format check): 184 suites, 2278 tests, 518 snapshots passed.