Skip to content

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

Merged
abernix merged 3 commits intomasterfrom
abernix/stop-double-willstart-call-apollo-server
Jan 29, 2019
Merged

Remove willStart from apollo-server, already called via …-express.#2239
abernix merged 3 commits intomasterfrom
abernix/stop-double-willstart-call-apollo-server

Conversation

@abernix
Copy link
Copy Markdown
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