Skip to content

Commit

Permalink
fix(devtools-internal): fix node_env conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
aliemir committed May 27, 2024
1 parent a48f8f3 commit 447d8f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/devtools-internal/src/use-query-subscription.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ import { createQueryListener, createMutationListener } from "./listeners";

export const useQuerySubscription =
__DEV_CONDITION__ !== "development"
? () => ({})
? () => {
return {};
}
: (queryClient: QueryClient) => {
const { ws } = useContext(DevToolsContext);
const queryCacheSubscription = React.useRef<() => void>();
Expand Down

0 comments on commit 447d8f5

Please sign in to comment.