redux-toolkit
redux-toolkit copied to clipboard
[Feature Request] [RTK Query] Prefix Inject Endpoints with URL (either versioning or shared base)
Feature Request
Looking for a feature that will prefix the injectEndpoint urls with added context similar to how baseUrl prefixes every URL. The example would look like this
Example
This could have multiple purpose but we have a microservice architecture so the code split folders commonly have shared prefixes such as user or notification but most importantly versioning like v1 so we can update an entire microservice versioning without copy pasting each individual hook.
This would be so awesome, any update on this?
@aymather there's no comments and no PRs, so no update :)
(As usual, we're open to external PRs that might try to address this, but it's not on our priority list to work on any time soon.)