File tree 1 file changed +3
-1
lines changed
packages/web/src/components/cell
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change
1
+ import { fragmentRegistry } from '../../apollo'
1
2
import { getOperationName } from '../../graphql'
2
3
/**
3
4
* This is part of how we let users swap out their GraphQL client while staying compatible with Cells.
@@ -67,6 +68,7 @@ function createNonSuspendingCell<
67
68
/* eslint-disable-next-line react-hooks/rules-of-hooks */
68
69
const { queryCache } = useCellCacheContext ( )
69
70
const operationName = getOperationName ( query )
71
+ const transformedQuery = fragmentRegistry . transform ( query )
70
72
71
73
let cacheKey
72
74
@@ -99,7 +101,7 @@ function createNonSuspendingCell<
99
101
} else {
100
102
queryCache [ cacheKey ] ||
101
103
( queryCache [ cacheKey ] = {
102
- query,
104
+ query : transformedQuery ,
103
105
variables : options . variables ,
104
106
hasProcessed : false ,
105
107
} )
You can’t perform that action at this time.
0 commit comments