TypeError: Cannot read property 'useRef' of null #4842
Unanswered
Jscripter-pk
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I created an SDK which will use react-query bindings so that it can be used in React and ReactNative app.
I am export this from a client class
And test for this in SDK is below which works for me
And then for using doing it in mobile I do like this on which I get the error
TypeError: Cannot read property 'useRef' of null
@TkDodo Can I get any clue why this might be happening. I might be doing something wrong
Note: When I normally use the function with useQuery from react-native I don't get this but when I try to use it from SDK I get the error
Beta Was this translation helpful? Give feedback.
All reactions