-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using coloquent with RTK query #107
Comments
I'd like to follow up on my question above, please |
I have the same issue and can't find any resources, any news? |
I haven't heard of earlier attempts of people trying this. No experience with RTK myself, but have you made an attempt to wrap a Coloquent query inside RTK queries? What kind of trouble are you running into? If you want to instead wrap RTK queries in Coloquent queries somehow, a path you can try is making a custom implementation of Coloquent's import { Model, HttpClient } from 'coloquent'
class MyCustomHttpClient implements HttpClient { ... }
Model.httpClient = new MyCustomHttpClient(...) For more details on how to implement such a client beyond what the types will tell you you have to refer to the implementation of the default |
Hi everyone,
I would like to use coloquent with redux toolkit query, but haven't been able to find any references or discussions for doing so.
If it's not possible to use coloquent within the query logic, could we possibly build the models from the response of the jsonapi rtk query?
Cheers all
The text was updated successfully, but these errors were encountered: