Skip to content

[iOS] Remove invalidate observer instead of re-adding observer in DeviceInfo module - #43737

Closed
zhongwuzw wants to merge 1 commit into
react:mainfrom
zhongwuzw:features/fix_device_observer
Closed

[iOS] Remove invalidate observer instead of re-adding observer in DeviceInfo module#43737
zhongwuzw wants to merge 1 commit into
react:mainfrom
zhongwuzw:features/fix_device_observer

Conversation

@zhongwuzw

Copy link
Copy Markdown
Contributor

Summary:

Previous fix brings in #42396. Seems it's a mistake to re-add observer?
So let's remove it and also not invalidate method not be called twice.

Changelog:

[IOS] [FIXED] - Remove invalidate observer instead of re-adding observer in DeviceInfo module

Test Plan:

Fix for #42120 also works.

@facebook-github-botfacebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. labels Apr 1, 2024
@analysis-bot

Copy link
Copy Markdown
PlatformEngineArchSize (bytes)Diff
androidhermesarm64-v8a18,877,269-9
androidhermesarmeabi-v7an/a--
androidhermesx86n/a--
androidhermesx86_64n/a--
androidjscarm64-v8a22,250,201+4
androidjscarmeabi-v7an/a--
androidjscx86n/a--
androidjscx86_64n/a--

Base commit: 2205880
Branch: main

@javache
javache requested a review from cipolleschiApril 2, 2024 15:19

@cipolleschicipolleschi 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.

🤦 Thanks for fixing this.

@facebook-github-bot

Copy link
Copy Markdown
Contributor

@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@github-actions

Copy link
Copy Markdown

This pull request was successfully merged by @zhongwuzw in 91279a8.

When will my fix make it into a release? | How to file a pick request?

@github-actionsgithub-actionsBot added the Merged This PR has been merged. label Apr 4, 2024
cortinico pushed a commit that referenced this pull request Apr 8, 2024
…o module (#43737)
Summary:
Previous fix brings in #42396. Seems it's a mistake to re-add observer?
So let's remove it and also not `invalidate` method not be called twice.
## Changelog:
[IOS] [FIXED] - Remove invalidate observer instead of re-adding observer in DeviceInfo module
Pull Request resolved: #43737
Test Plan: Fix for #42120 also works.
Reviewed By: javache
Differential Revision: D55692219
Pulled By: cipolleschi
fbshipit-source-id: dba1ddc39a9f2611fc2b84fadf8c23827891379a
Saadnajmi pushed a commit to Saadnajmi/react-native-macos that referenced this pull request May 24, 2024
…o module (react#43737)
Summary:
Previous fix brings in react#42396. Seems it's a mistake to re-add observer?
So let's remove it and also not `invalidate` method not be called twice.
[IOS] [FIXED] - Remove invalidate observer instead of re-adding observer in DeviceInfo module
Pull Request resolved: react#43737
Test Plan: Fix for react#42120 also works.
Reviewed By: javache
Differential Revision: D55692219
Pulled By: cipolleschi
fbshipit-source-id: dba1ddc39a9f2611fc2b84fadf8c23827891379a
This was referenced Jun 28, 2024
gabrieldonadel pushed a commit that referenced this pull request Jul 1, 2024
…o module (#43737)
Summary:
Previous fix brings in #42396. Seems it's a mistake to re-add observer?
So let's remove it and also not `invalidate` method not be called twice.
[IOS] [FIXED] - Remove invalidate observer instead of re-adding observer in DeviceInfo module
Pull Request resolved: #43737
Test Plan: Fix for #42120 also works.
Reviewed By: javache
Differential Revision: D55692219
Pulled By: cipolleschi
fbshipit-source-id: dba1ddc39a9f2611fc2b84fadf8c23827891379a
@cipolleschicipolleschi mentioned this pull request Jul 22, 2024
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA SignedThis label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.MergedThis PR has been merged.Shared with MetaApplied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@zhongwuzw@analysis-bot@facebook-github-bot@cipolleschi