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

[RCTBridge] Have RCTBridge.loading return RCTBatchedBridge.loading #1200

Closed
wants to merge 1 commit into from

Conversation

ide
Copy link
Contributor

@ide ide commented May 8, 2015

The parent RCTBridge no longer tracks the JS loading since that has been handed off to the RCTBatchedBridge. To make the loading property accurate again, just expose the batch bridge's loading property from the parent bridge (note: I didn't make it KVO-compliant).

Fixes #1199

@ide ide force-pushed the rctbridge-loading branch from 3cee67b to 2958f42 Compare May 8, 2015 13:10
@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 May 8, 2015
The parent RCTBridge no longer tracks the JS loading since that has been handed off to the RCTBatchedBridge. To make the `loading` property accurate again, just expose the batch bridge's loading property from the parent bridge (note: I didn't make it KVO-compliant).
@ide ide force-pushed the rctbridge-loading branch from 2958f42 to 4c2ea95 Compare May 8, 2015 21:51
@tadeuzagallo
Copy link
Contributor

The reason some methods and properties were removed from the parent bridge is because I don't think they should be accessed from the top level. I might not be considering some use case though, can you explain yours?

@ide
Copy link
Contributor Author

ide commented May 9, 2015

I use them for assertions when creating an RCTBridge and loading JS but would be OK with moving the property out of RCTBridge.h and into the RCTBatchedBridge @interface.

@nicklockwood
Copy link
Contributor

@tadeuzagallo it seems like loading should be exposed on the parent bridge anyway, as it doesn't suffer from concurrency issues.

@ide ide closed this in 2497c02 May 15, 2015
@ide ide deleted the rctbridge-loading branch May 19, 2015 02:22
ayushjainrksh pushed a commit to MLH-Fellowship/react-native that referenced this pull request Jul 2, 2020
acoates-ms pushed a commit to acoates-ms/react-native that referenced this pull request Jun 22, 2022
Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/chalk/ansi-regex/releases)
- [Commits](chalk/ansi-regex@v4.1.0...v4.1.1)

---
updated-dependencies:
- dependency-name: ansi-regex
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RCTBridge's loading property is no longer set
5 participants