Skip to content

no simple way to provide executorClass to RCTBridge #1009

Description

@jwyld

The property can be set after -initWithBundleURL:moduleProvider:launchOptions:, but that requires a -reload which can't be performed until the original load from -setUp is finished. That's a lot of latency.

An initial reaction would be to subclass RCTBridge and set the executorClass early. The problem here is that -setUp is called from the designated initializer which means the first safe time to set it is after it's use.

The next reaction would be to override -executorClass. The problem is -setUp directly accesses the ivar instead of using the accessor.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions