Skip to content

Commit

Permalink
fix: avoid adding empty devtools exchange
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanPiercey committed Dec 15, 2023
1 parent 06e59ba commit 95dccc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node_modules/@internal/client/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export function getClient() {
export function configureClient(config: ClientOptions) {
ssr = ssrExchange({ isClient: true });
let exchanges = [dedupExchange, cacheExchange, ssr, fetchExchange];
if (process.env.NODE_ENV !== "production") {
if (process.env.NODE_ENV !== "production" && devtoolsExchange) {
exchanges.push(devtoolsExchange);
}

Expand Down

0 comments on commit 95dccc0

Please sign in to comment.