React-query: Exception if variables are undefined

Created on 3 Oct 2019  路  6Comments  路  Source: tannerlinsley/react-query

If there are no variables defined so it throws an exception.
In order to overcome this error i just pass "variables: {}" to all useQuery functions that i use

Most helpful comment

Fixed!

All 6 comments

Could you screenshot the exception and stack trace please?

Noticed that it only happens when i not providing an object as the second parameter

Screen Shot 2019-10-03 at 17 12 53

Should be an easy fix :) Thanks!

Fixed!

This seems to be an issue again, but it's _ref11 now (same function)

Currently working on the next major version. This will be fixed (actually the code causing this error won't even be in the library any more 馃槃) Stay tuned!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wolverineks picture wolverineks  路  6Comments

tiagofernandez picture tiagofernandez  路  3Comments

the133448 picture the133448  路  4Comments

bgazzera picture bgazzera  路  4Comments

alveshelio picture alveshelio  路  6Comments