GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [react-native] Fix misleading crash when view config is not found by javache · Pull Request #30970 · react/react

Conversation

@javache

@javache javache commented Sep 16, 2024

Copy link
Copy Markdown
Contributor

Summary

When a view config can not be found, it currently errors with TypeError: Cannot read property 'bubblingEventTypes' of null. Instead invariant at the correct location and prevent further processing of the null viewConfig to improve the error logged.

How did you test this change?

Build and run RN playground app referencing an invalid native view through requireNativeComponent.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@javache
[react-native] Fix misleading crash when view config is not found
c12990e
@facebook-github-bot facebook-github-bot added the CLA Signed label Sep 16, 2024
@javache javache assigned yungsters, rubennorte and sammy-SC Sep 16, 2024
@vercel

vercel Bot commented Sep 16, 2024

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-compiler-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 16, 2024 4:48pm
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@vercel
vercel Bot deployed to Preview September 16, 2024 16:48
View deployment
rubennorte
rubennorte approved these changes Sep 16, 2024
View reviewed changes
@javache
javache merged commit 26855e4 into react:main Sep 16, 2024
@javache
javache deleted the native-view-registry branch September 16, 2024 16:51
@react-sizebot

react-sizebot commented Sep 16, 2024

Copy link
Copy Markdown

Comparing: 9f4e4611ead28d34f7f598c9bd12424cf68f5781...39aadbc55593d28ef4442138c80452b057122935

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.js = 6.68 kB 6.68 kB = 1.82 kB 1.82 kB
oss-stable/react-dom/cjs/react-dom-client.production.js = 509.31 kB 509.30 kB = 91.10 kB 91.09 kB
oss-experimental/react-dom/cjs/react-dom.production.js = 6.69 kB 6.69 kB = 1.83 kB 1.83 kB
oss-experimental/react-dom/cjs/react-dom-client.production.js = 514.28 kB 514.23 kB = 91.82 kB 91.81 kB
facebook-www/ReactDOM-prod.classic.js = 604.85 kB 604.90 kB = 106.86 kB 106.87 kB
facebook-www/ReactDOM-prod.modern.js = 581.12 kB 581.13 kB = 103.01 kB 103.01 kB

Significant size changes

Includes any change greater than 0.2%:

Expand to show
Name +/- Base Current +/- gzip Base gzip Current gzip
react-native/shims/ReactNativeViewConfigRegistry.js = 3.57 kB 3.55 kB = 1.24 kB 1.23 kB

Generated by 🚫 dangerJS against c12990e

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

github-actions Bot pushed a commit that referenced this pull request Sep 16, 2024
@javache
[react-native] Fix misleading crash when view config is not found (#3…
4c48f1f
…0970)

## Summary

When a view config can not be found, it currently errors with
`TypeError: Cannot read property 'bubblingEventTypes' of null`. Instead
invariant at the correct location and prevent further processing of the
null viewConfig to improve the error logged.

## How did you test this change?

Build and run RN playground app referencing an invalid native view
through `requireNativeComponent`.

DiffTrain build for commit 26855e4.
github-actions Bot pushed a commit that referenced this pull request Sep 16, 2024
@javache
[react-native] Fix misleading crash when view config is not found (#3…
6ba137b
…0970)

## Summary

When a view config can not be found, it currently errors with
`TypeError: Cannot read property 'bubblingEventTypes' of null`. Instead
invariant at the correct location and prevent further processing of the
null viewConfig to improve the error logged.

## How did you test this change?

Build and run RN playground app referencing an invalid native view
through `requireNativeComponent`.

DiffTrain build for [26855e4](26855e4)
@vercel-release-bot vercel-release-bot mentioned this pull request Sep 17, 2024
Upgrade React from 206df66e-20240912 to a99d8e8d-20240916 vercel/next.js#70190
Merged
eps1lon pushed a commit to vercel/next.js that referenced this pull request Sep 18, 2024
@vercel-release-bot
Upgrade React from 206df66e-20240912 to a99d8e8d-20240916 (#70190)
5791706
**breaking change for canary users: Bumps peer dependency of React from
`19.0.0-rc-206df66e-20240912` to `19.0.0-rc-a99d8e8d-20240916`**

[diff
react/react@206df66e...a99d8e8d](react/react@206df66...a99d8e8)

<details>
<summary>React upstream changes</summary>

- react/react#30977
- react/react#30971
- react/react#30922
- react/react#30917
- react/react#30902
- react/react#30912
- react/react#30970
- react/react#30969
- react/react#30967
- react/react#30966
- react/react#30960
- react/react#30968
- react/react#30961
- react/react#28255
- react/react#30957
- react/react#30958
- react/react#30959
- react/react#30951
- react/react#30954
- react/react#30920
- react/react#30942

</details>
hanzo-dev pushed a commit to hanzoai/react that referenced this pull request Sep 9, 2026
@javache
[react-native] Fix misleading crash when view config is not found (re…
a954212
…act#30970)

## Summary

When a view config can not be found, it currently errors with
`TypeError: Cannot read property 'bubblingEventTypes' of null`. Instead
invariant at the correct location and prevent further processing of the
null viewConfig to improve the error logged.

## How did you test this change?

Build and run RN playground app referencing an invalid native view
through `requireNativeComponent`.

This branch was successfully deployed

1 active deployment
Preview — c12990ed Deployed Sep 16, 2024 by vercel[bot]
View deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@rubennorte rubennorte rubennorte approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@yungsters yungsters

@rubennorte rubennorte

@sammy-SC sammy-SC

Labels

CLA Signed

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

6 participants

@javache @react-sizebot @rubennorte @yungsters @sammy-SC @facebook-github-bot
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.