React redirect on error avoiding code duplication

后端 未结 0 691
囚心锁ツ
囚心锁ツ 2020-12-07 23:40

I have a graphql function where it checks if request token has expired, if it is expired I need it to redirect to login. On each page of my app, I make a call the the server

相关标签:
回答
  • 消灭零回复
提交回复
热议问题