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

Remove willStart from apollo-server, already called via …-express. #2239

Merged
merged 3 commits into from
Jan 29, 2019

Conversation

abernix
Copy link
Member

@abernix abernix commented Jan 29, 2019

When the request pipeline was initially introduced, the integrations had yet to be updated to call the new life-cycle events. Now, the integrations have all caught up, but apollo-server is still calling willStart, despite the fact that its dependency which provides the actual server implementation — apollo-server-express – is also calling it, resulting in double invocation of this event.

I suspect some follow-up work should guard against this possibility, but for
now this should remove the duplication.

…ess`.

When the request pipeline was initially introduced, the integrations
had yet to be updated to call the new life-cycle events.  Now, the
integrations have all caught up, but `apollo-server` is still calling
`willStart`, despite the fact that its dependency which provides the actual
server implementation — `apollo-server-express` – is _also_ calling it,
resulting in double invocation of this event.

I suspect some follow-up work should guard against this possibility, but for
now this should remove the duplication.
@abernix abernix added this to the Release 2.3.3 milestone Jan 29, 2019
@abernix abernix merged commit db39aa5 into master Jan 29, 2019
@abernix abernix deleted the abernix/stop-double-willstart-call-apollo-server branch January 29, 2019 09:39
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant