React-query: query.cancelQueries is not a function bug

Created on 11 Jan 2020  路  11Comments  路  Source: tannerlinsley/react-query

latest update with commit call queryFn cancellation methods if provided (#94) triggers query.cancelQueries is not a function error for me on component unmount

Most helpful comment

any update when will release a new version with the fix?

All 11 comments

Yes, I'm experiencing the same.

I'm getting the same issue.

Hello fulks, this error are still happening to me, and the location of this is:
Captura de tela de 2020-01-16 07-26-59
I'm using the v0.3.24 version

@davidcostadev the version with this fix has not been released yet. Change to v0.3.23.

Thanks @matheusalbino this works to me

any update when will release a new version with the fix?

I'm getting the same error with 0.3.24?

Since I'm very new to react-query, is there any simple workaround for this?

Downgrading to 0.3.23 fixed it for me. I guess you've lost a commit?

Same issue here, it's breaking my build :'(

@davidcostadev the version with this fix has not been released yet. Change to v0.3.23.

@gndelia :point_up_2:

I tried that but I still got the same error.

In this case, it's happening in the context of a test: I am using react-testing-library to test a component tree, and the root of that uses react-query

Released! Thanks everyone!

Was this page helpful?
0 / 5 - 0 ratings