-
Notifications
You must be signed in to change notification settings - Fork 30
No auto-generated hooks when using fakeBaseQuery
#205
Comments
What build are you using atm? That stuff isn't even released yet, as far as I know. Note that in the current |
@garrettjoecox This is correct. You'll need to import from the react entrypoint 🎉 More specifically: import { createApi } from '@rtk-incubator/rtk-query/react';
import { fakeBaseQuery } from '@rtk-incubator/rtk-query'; |
Terrific, this solved my issue.
Using the |
@garrettjoecox That's awesome! Keep us posted on your experience. We're almost ready to go - just updating the docs and potentially one more small feature will get merged in today. |
Hey there, I'm using the newly added
fakeBaseQuery
pattern, as we have an already built SDK we are wanting to wrap RTKQ around.Following the pattern in the fakeBaseQuery tests it doesn't seem the returned value has the auto-generated hooks for the queries added. Is this a design decision, are we stuck with that limitation if we use fakeBaseQuery?
The text was updated successfully, but these errors were encountered: