You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
API requests are being sent before authentication checks complete.
This is important for two reasons:
We don't want to show data to users who shouldn't see it.
We want the correct data to load for each user. The auth check returns info about the user which determines what shows up on the page.
This is probably because the RTK query hooks used in components to make API requests are fired as soon as they are mounted. Rather than trying to tell each component to wait until auth, we should probably make it so these components don't mount until the auth check completes. Implementing this could also resolve #78.
Expected Behavior
API requests should be sent after auth checks.
Actual Behavior
API requests happen are being sent before auth checks.
Overview
API requests are being sent before authentication checks complete.
This is important for two reasons:
This is probably because the RTK query hooks used in components to make API requests are fired as soon as they are mounted. Rather than trying to tell each component to wait until auth, we should probably make it so these components don't mount until the auth check completes. Implementing this could also resolve #78.
Expected Behavior
API requests should be sent after auth checks.
Actual Behavior
API requests happen are being sent before auth checks.
Steps to Reproduce
Note: These steps assume #148 has been merged.
/api/boundaries
with no query parameters/api/boundaries/?utilities=<selected utility id>
api/boundaries/?utilities=<original utility id>
Demo
Screen.Recording.2022-10-24.at.9.10.42.AM.mov
The text was updated successfully, but these errors were encountered: