Skip to content

Add flow types to ReactFiberHooks file#25752

Merged
sammy-SC merged 3 commits into
react:mainfrom
sammy-SC:add-types-to-ReactFiberHooks
Dec 2, 2022
Merged

Add flow types to ReactFiberHooks file#25752
sammy-SC merged 3 commits into
react:mainfrom
sammy-SC:add-types-to-ReactFiberHooks

Conversation

@sammy-SC

@sammy-SC sammy-SC commented Nov 30, 2022

Copy link
Copy Markdown
Contributor

Increase type coverage in ReactFiberHooks file.

@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels Nov 30, 2022
@sammy-SC
sammy-SC requested review from acdlite and kassens November 30, 2022 17:07
@sammy-SC
sammy-SC marked this pull request as ready for review November 30, 2022 17:07

@kassens kassens left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The old/new fork is gone now, can you rebase? Otherwise looks great though. A bit sad about the anys, but we can maybe work on them over time..

@sizebot

sizebot commented Dec 2, 2022

Copy link
Copy Markdown

Comparing: f0bba2d...dfa9ae0

Critical size changes

Includes critical production bundles, as well as any change greater than 2%:

Name +/- Base Current +/- gzip Base gzip Current gzip
oss-stable/react-dom/cjs/react-dom.production.min.js = 154.43 kB 154.40 kB = 49.00 kB 49.00 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js = 156.36 kB 156.32 kB = 49.64 kB 49.65 kB
facebook-www/ReactDOM-prod.classic.js = 533.46 kB 533.40 kB = 95.00 kB 94.99 kB
facebook-www/ReactDOM-prod.modern.js = 518.56 kB 518.50 kB = 92.81 kB 92.80 kB
facebook-www/ReactDOMForked-prod.classic.js = 533.46 kB 533.40 kB = 95.00 kB 94.99 kB

Significant size changes

Includes any change greater than 0.2%:

(No significant changes)

Generated by 🚫 dangerJS against dfa9ae0

@sammy-SC

sammy-SC commented Dec 2, 2022

Copy link
Copy Markdown
Contributor Author

This is just a small step in the right direction :)

@sammy-SC
sammy-SC merged commit 17f6912 into react:main Dec 2, 2022
@sammy-SC
sammy-SC deleted the add-types-to-ReactFiberHooks branch December 2, 2022 15:31
facebook-github-bot pushed a commit to react/react-native that referenced this pull request Jan 30, 2023
Summary:
Three problems popped up during the sync:
- react/react@07f46ecf2 breaks breaks tests
- react/react@6fb8133ed breaks fbsource tests. I added a workaround and created a test for the team that owns the test.
- https://fb.workplace.com/groups/flowlang/permalink/1198137807458547/ enables local type interference in fbsource but not in github React repo and some code breaks. Addressed in react/react#26064

This sync includes the following changes:
- **[17f6912](react/react@17f6912a4 )**: Add flow types to ReactFiberHooks ([#25752](react/react#25752)) //<Samuel Susla>//
- **[f101c2d](react/react@f101c2d0d )**: Remove Reconciler fork (2/2) ([#25775](react/react#25775)) //<Jan Kassens>//
- **[420f0b7](react/react@420f0b7fa )**: Remove Reconciler fork (1/2) ([#25774](react/react#25774)) //<Jan Kassens>//
- **[3ba7add](react/react@3ba7add60 )**: Allow async blocks in `to(Error|Warn)Dev` ([#25338](react/react#25338)) //<Sebastian Silbermann>//
- **[fa11bd6](react/react@fa11bd6ec )**: [ServerRenderer] Add option to send instructions as data attributes ([#25437](react/react#25437)) //<mofeiZ>//
- **[e982254](react/react@e98225485 )**: Add ref cleanup function ([#25686](react/react#25686)) //<Samuel Susla>//
- **[15557fa](react/react@15557fa67 )**: [Fix] properly track `useId` use in StrictMode in development ([#25713](react/react#25713)) //<Josh Story>//
- **[8a23def](react/react@8a23def32 )**: Resubmit Add HydrationSyncLane ([#25711](react/react#25711)) //<Tianyu Yao>//
- **[2655c93](react/react@2655c9354 )**: Fizz Browser: fix precomputed chunk being cleared on Node 18 ([#25645](react/react#25645)) //<Jimmy Lai>//
- **[c08d8b8](react/react@c08d8b804 )**: Revert "Add SyncHydrationLane" ([#25708](react/react#25708)) //<Tianyu Yao>//
- **[56ffca8](react/react@56ffca8b9 )**: Add Bun streaming server renderer ([#25597](react/react#25597)) //<Colin McDonnell>//
- **[f31005d](react/react@f31005d6a )**: Add SyncHydrationLane ([#25698](react/react#25698)) //<Tianyu Yao>//
- **[f284d9f](react/react@f284d9faf )**: Track ThenableState alongside other hooks //<Andrew Clark>//
- **[6b4c031](react/react@6b4c0314e )**: Check thenable instead of thenableState //<Andrew Clark>//
- **[33e3d28](react/react@33e3d2878 )**: Reuse hooks when replaying a suspended component //<Andrew Clark>//
- **[4387d75](react/react@4387d752d )**: Allow more hooks to be added when replaying mount //<Andrew Clark>//
- **[5eb78d0](react/react@5eb78d0a0 )**: Pass ThenableState to replaySuspendedUnitOfWork //<Andrew Clark>//
- **[4a2d86b](react/react@4a2d86bdd )**: Don't reset work loop until stack is unwound //<Andrew Clark>//
- **[9dfbd9f](react/react@9dfbd9fa9 )**: use: Don't suspend if there are pending updates //<Andrew Clark>//
- **[44c4e6f](react/react@44c4e6f4d )**: Force unwind work loop during selective hydration ([#25695](react/react#25695)) //<Andrew Clark>//
- **[7b17f7b](react/react@7b17f7bbf )**: Enable warning for defaultProps on function components for everyone ([#25699](react/react#25699)) //<Sebastian Markbåge>//
- **[6fb8133](react/react@6fb8133ed )**: Turn on string ref deprecation warning for everybody (not codemoddable) ([#25383](react/react#25383)) //<Sebastian Silbermann>//
- **[07f46ec](react/react@07f46ecf2 )**: Turn on key spread warning in jsx-runtime for everyone ([#25697](react/react#25697)) //<Sebastian Markbåge>//
- **[d65b88d](react/react@d65b88d03 )**: Eagerly initialize an mutable object for instance.refs ([#25696](react/react#25696)) //<Sebastian Markbåge>//
- **[c343f80](react/react@c343f8025 )**: [react-float] feature detect getRootNode ([#25689](react/react#25689)) //<Jan Kassens>//
- **[e1dd0a2](react/react@e1dd0a2f5 )**: Remove recoverable error when a sync update flows into a dehydrated boundary ([#25692](react/react#25692)) //<Sebastian Markbåge>//
- **[c54e354](react/react@c54e3541b )**: [DevTools] bug fix for Hydrating fibers ([#25663](react/react#25663)) //<Mengdi Chen>//

Changelog:
[General][Changed] - React Native sync for revisions d1e35c7...17f6912

jest_e2e[run_all_tests]

Reviewed By: makovkastar

Differential Revision: D42804802

fbshipit-source-id: 6a9f00724cc73378025bbd04edb2d17760a87280
mrizwanashiq pushed a commit to mrizwanashiq/react that referenced this pull request Jun 25, 2026
Increase type coverage in ReactFiberHooks file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed React Core Team Opened by a member of the React Core Team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants