Reactjs – useLazyQuery doesn't update data between all components
I'm currently using the useXXXLazyQuery hook of rtk query for handling the login of my page, the problem is that i don't have the latest data in my ProtectedRoute component. The code is as following: ProtectedRoute Component import { type…