Skip to content

Commit

Permalink
refactor(query-core): remove queryKey check in production environme…
Browse files Browse the repository at this point in the history
…nt (#5969)
  • Loading branch information
Mini-ghost committed Sep 7, 2023
1 parent 29c9b18 commit 423bcf0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/query-core/src/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -354,8 +354,8 @@ export class Query<
}
}

if (!Array.isArray(this.options.queryKey)) {
if (process.env.NODE_ENV !== 'production') {
if (process.env.NODE_ENV !== 'production') {
if (!Array.isArray(this.options.queryKey)) {
this.logger.error(
`As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']`,
)
Expand Down

0 comments on commit 423bcf0

Please sign in to comment.