-
Notifications
You must be signed in to change notification settings - Fork 991
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(fastify): Ensure global context is unique and scoped to an indivi…
…dual request lifetime (#8569) * Add hook to setup the async store * Switched to use async local store for the context of all requests. Fixed the failing tests. * Remove legacy code * Fixed mockRedwoodDirective to correctly handle the fake request scope. Minor changes to the global context file too. * Add context isolating hook to the api fastify plugin too. This is likely inefficient to have it defined in both plugins unconditionally but right now I think it ensures context safety for all API requests. * lint
- Loading branch information
1 parent
d851609
commit c5921bc
Showing
11 changed files
with
190 additions
and
339 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
141 changes: 0 additions & 141 deletions
141
packages/graphql-server/src/functions/__tests__/graphql.test.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.