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

fix: avoid calling Timing.deleteTimer for setImmediate and requestIdleCallback #26113

Closed
wants to merge 1 commit into from

Conversation

aleclarson
Copy link
Contributor

Summary

Fix a simple error where types[index] was being accessed after it was cleared, instead of before.

Changelog

[iOS] [Fixed] - never call deleteTimer for setImmediate and requestIdleCallback

Test Plan

None

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 19, 2019
@react-native-bot react-native-bot added Bug Platform: iOS iOS applications. labels Aug 19, 2019
Copy link
Contributor

@cpojer cpojer left a comment

Choose a reason for hiding this comment

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

How did this ever work. Feels to me like we need some tests…

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@cpojer is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @aleclarson in 4fc3e7a.

When will my fix make it into a release? | Upcoming Releases

@react-native-bot react-native-bot added the Merged This PR has been merged. label Sep 11, 2019
facebook-github-bot pushed a commit that referenced this pull request May 23, 2023
Summary:
Previously, we'd call and use getSnapshot on the second render resulting
in `Warning: Text content did not match. Server: "Nay!" Client: "Yay!"`
and then `Error: Text content does not match server-rendered HTML.`.

Fixes #26095. Closes #26113. Closes #25650.

---------

DiffTrain build for commit facebook/react@4cd7065.

Reviewed By: mofeiZ

Differential Revision: D45829972

Pulled By: sammy-SC

fbshipit-source-id: e89404c53a1b8478d22252ca24ddcc9647744d37

Co-authored-by: eps1lon <silbermann.sebastian@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. Platform: iOS iOS applications.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants