-
I want to add a sort of interceptor to all queries in my app, which can trigger Couldn't really find any example like my use case - I saw people adding the "is status 401?" check inside I also cannot The Is there a more recommended way to do this? I thought about passing
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
you'd want to create the client and the cache only once, but you can do this:
of course, if |
Beta Was this translation helpful? Give feedback.
you'd want to create the client and the cache only once, but you can do this:
of course, if
authorize
is referentially stable, you can just put everything into useState. But if its not you might get stale closure issues.