redux-toolkit icon indicating copy to clipboard operation
redux-toolkit copied to clipboard

[Feature Request] [RTK Query] Prefix Inject Endpoints with URL (either versioning or shared base)

Open MylesWardell opened this issue 2 years ago • 2 comments

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

image

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.

MylesWardell avatar Aug 08 '23 04:08 MylesWardell

This would be so awesome, any update on this?

aymather avatar Sep 19 '24 21:09 aymather

@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.)

markerikson avatar Sep 19 '24 22:09 markerikson