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

Reinstate ProcessContext provider #772

Closed
michaelbromley opened this issue Mar 18, 2021 · 0 comments
Closed

Reinstate ProcessContext provider #772

michaelbromley opened this issue Mar 18, 2021 · 0 comments

Comments

@michaelbromley
Copy link
Member

Is your feature request related to a problem? Please describe.
After the v1.0 refactor of the worker architecture, we no longer have a means to determine whether code is being run in the context of the server or worker. We previously had the ProcessContext provider which allowed us to add conditional checks like

if (this.processContext.isServer) {
  // ...
}

Describe the solution you'd like
Reinstate the ProcessContext, using the same implementation as before.

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

No branches or pull requests

1 participant