Is it possible to override the timeout value dynamically during the session? #4955
-
Hi guys, I'm using the const baseQueryInitial = fetchBaseQuery({
baseUrl: mainBaseUrl,
timeout: 120000, // 2 minutes
}); My question is, is it possible to override the Any help or guidance would be greatly appreciated! Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
markerikson
Apr 28, 2025
Replies: 1 comment
-
Probably the best approach is to wrap the base query with a custom-written one, grab a value from the Redux store similar to the "dynamic base query" example, and pass that in when you call the original base query: |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
User6531
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Probably the best approach is to wrap the base query with a custom-written one, grab a value from the Redux store similar to the "dynamic base query" example, and pass that in when you call the original base query: