Infer connectToDevTools
regardless of whether another client has connected or not
#11707
Labels
connectToDevTools
regardless of whether another client has connected or not
#11707
The
connectToDevTools
option currently sets a default value based on whether__DEV__
is set and whether another client has already connected to devtools (by checkingwindow.__APOLLO_CLIENT__
). While this worked well for the old devtools registration mechanism, we now have the ability to register multiple clients with the new devtools registration mechanism. We can and should remove the check forwindow.__APOLLO_CLIENT__
to allowconnectToDevTools
to be inferred based on__DEV__
, otherwise it presents confusion when the first client is automatically registered, but subsequent ones are not. To workaround this currently, you need to explicitly setconnectToDevTools
totrue
in order for other created clients to be registered.Work is still underway to actually be able to switch between multiple clients in the devtools. This work should be accomplished some time after that.
The text was updated successfully, but these errors were encountered: