Skip to content
Source
Sign inSign up
TanStack/query

Query still runs with falsey query key #20

Closedkira-krul(GitHub profile, opens in a new tab) opened this issue 2 comments

Either there's a bug or the readme is very misleading. Here's a codesandbox reproducing the issue

Expected behaviour:

useQuery with a false key is ignored and nothing's printed to console

Actual behaviour:

Despite key being false the function is called

  1. This is indeed a bug.

  2. This was fixed in version 0.3.4. Thanks! 🎉

  3. tannerlinsley closed this

Sign in to join this conversation.