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

allow subscribing to OpenCtx controller before it's initialized #6931

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sqs
Copy link
Member

@sqs sqs commented Feb 4, 2025

Previously, if some statically initialized value tried to read the openCtx.controller before it was set in exposeOpenCtxClient, it would throw. This required some contortions to ensure that it was initialized only after exposeOpenCtxClient was called. Now, anything can subscribe to openctxController at any time, and it will receive an emission of the OpenCtx controller when it's ready.

Test plan

CI

Previously, if some statically initialized value tried to read the `openCtx.controller` before it was set in `exposeOpenCtxClient`, it would throw. This required some contortions to ensure that it was initialized only after `exposeOpenCtxClient` was called. Now, anything can subscribe to `openctxController` at any time, and it will receive an emission of the OpenCtx controller when it's ready.
@sqs sqs force-pushed the sqs/init-openctx-ctrl branch from d1e47d3 to 298c29c Compare February 4, 2025 06:53
@sqs sqs marked this pull request as ready for review February 4, 2025 06:53
@sqs sqs requested review from dominiccooney and a team February 4, 2025 06:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant