Skip to content

Commit

Permalink
refactor: Update useBaseQuery.ts (#813)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDeBoey authored Jul 29, 2020
1 parent ac94414 commit 126790b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/react/useBaseQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export function useBaseQuery<TResult, TError>(
instanceRef.current?.updateConfig(config)
})

const enabledBool = !!config.enabled
const enabledBool = Boolean(config.enabled)

// Run the instance when the query or enabled change
React.useEffect(() => {
Expand Down

1 comment on commit 126790b

@vercel
Copy link

@vercel vercel bot commented on 126790b Jul 29, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.