Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(router): Move entry registration to expo. #23891

Merged
merged 5 commits into from
Aug 10, 2023

Conversation

EvanBacon
Copy link
Contributor

Why

  • We forked away from the expo entry registration in expo-router v2 in order to support static rendering on web.
  • We can "unfork" this function and move the static support upstream as of SDK 49.
  • Resolve ENG-9697

How

Test Plan

Checklist

@EvanBacon EvanBacon marked this pull request as draft August 9, 2023 20:01
@expo-bot expo-bot added the bot: suggestions ExpoBot has some suggestions label Aug 9, 2023
Co-authored-by: Expo Bot <34669131+expo-bot@users.noreply.github.com>
@expo-bot expo-bot added bot: passed checks ExpoBot has nothing to complain about and removed bot: suggestions ExpoBot has some suggestions labels Aug 9, 2023
packages/expo/src/launch/registerRootComponent.tsx Outdated Show resolved Hide resolved
const rootTag = createRoot(tag);
rootTag.render(React.createElement(qualifiedComponent));
AppRegistry.runApplication('main', {
rootTag,
Copy link
Member

Choose a reason for hiding this comment

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

Is this property name something we have control over? rootElement would be a more accurate name than rootTag.

Copy link
Contributor Author

@EvanBacon EvanBacon Aug 10, 2023

Choose a reason for hiding this comment

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

This is the property name for the runApplication method.

Copy link
Member

Choose a reason for hiding this comment

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

By definition it is, but is it something we have control over?

@EvanBacon EvanBacon marked this pull request as ready for review August 10, 2023 18:33
@EvanBacon EvanBacon merged commit 7d43433 into main Aug 10, 2023
7 of 8 checks passed
@EvanBacon EvanBacon deleted the @evanbacon/expo/unfork-entry branch August 10, 2023 19:33
EvanBacon added a commit that referenced this pull request Aug 23, 2023
# Why

- regression in #23891.
- fix static rehydration.
- fix react refresh for web in the monorepo.
- fix react-native-web warnings.

---------

Co-authored-by: Expo Bot <34669131+expo-bot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: passed checks ExpoBot has nothing to complain about
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants