From 4a5822ae2bf0130d75ec23dc8bfe23bbc342e39d Mon Sep 17 00:00:00 2001 From: Dulmandakh Date: Tue, 12 Jan 2021 00:28:17 +0800 Subject: [PATCH] Set displayName for ApolloContext for easier debugging (#7550) Co-authored-by: Ben Newman --- src/react/context/ApolloContext.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/react/context/ApolloContext.ts b/src/react/context/ApolloContext.ts index 13934e66ba4..1fac5bc5c9d 100644 --- a/src/react/context/ApolloContext.ts +++ b/src/react/context/ApolloContext.ts @@ -23,6 +23,7 @@ export function getApolloContext() { let context = cache.get(React.createContext)!; if (!context) { context = React.createContext({}); + context.displayName = 'ApolloContext'; cache.set(React.createContext, context); } return context;