What I'd recommend here is to create a custom hook which makes use of React's Context API in order to "monitor" the auth state changing.
確定! 回上一頁