This repository has been archived by the owner on Jun 8, 2021. It is now read-only.
Allow specifying queryFn
in endpoint definitions to skip baseQuery
?
#139
Labels
discussion
Requires further discussion
Milestone
Inspired by https://www.reddit.com/r/reactjs/comments/kkq8bi/alpha_2_of_rtkquery_released/ghovnvh/?context=3
This would allow endpoints to get a
queryFn
option that would replace & skip thebaseQuery
for that endpoint.query
would become optional in that case and default tox => x
.That way, stuff like the google api client, or maybe firebase, could just be used as asynchronous functions.
From the codebase and our internal workflows it should be feasible to implement without too many changes.
Any thoughts?
The text was updated successfully, but these errors were encountered: