Should the defaultConfig be exported? #2022
Unanswered
peterferguson
asked this question in
Q&A
Replies: 1 comment
-
should this just be handled in middleware? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to set up a top-level
onErrorRetry
& I simply want to use the default but inject some logic beforehand.My use-case is basically to catch expired session tokens & reconnect on any api call but from the top-level.
I can't seem to find a way to get the
defaultConfig
from theswr/utils/config
without a patch?Should I not be doing this or is this a reasonable use-case in which case I could make a pr
Beta Was this translation helpful? Give feedback.
All reactions