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: Explicitly pass queryClient to Feature Flags store #4384

Merged
merged 2 commits into from
Mar 20, 2024

Conversation

briangregoryholmes
Copy link
Contributor

@briangregoryholmes briangregoryholmes commented Mar 19, 2024

This PR solves an issue where the runtime could be updated outside of the context of a component, which meant that the Feature Flag store's use of createRuntimeServiceGetFile would try to retrieve the queryClient via getContext outside component initialization. This PR creates the global query client outside of a component so that it can be explicitly passed when necessary.

@briangregoryholmes briangregoryholmes self-assigned this Mar 19, 2024
@briangregoryholmes briangregoryholmes added patch Type:Bug Something isn't working labels Mar 19, 2024
@briangregoryholmes briangregoryholmes marked this pull request as draft March 19, 2024 18:44
@briangregoryholmes briangregoryholmes marked this pull request as ready for review March 19, 2024 19:23
@ericpgreen2 ericpgreen2 merged commit e7a9c2f into main Mar 20, 2024
4 checks passed
@ericpgreen2 ericpgreen2 deleted the bgh/fix-query-client branch March 20, 2024 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Type:Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants