Network list caching cross session
Summary
Cached network lists are not invalidated when logging out and into another account, creating the illusion that you have access to another users networks.
Steps to reproduce
- Log into an account with networks.
- View network tab.
- Without refreshing, log out and into another user with no networks.
- Go to network tab and see the first users networks till you refresh.
Platform information
Web.
What is the current bug behavior?
Cached network list is shown despite user being different.
What is the expected correct behavior?
List is that of the user who's account you are accessing.
Relevant logs and/or screenshots
simplescreenrecorder-2023-12-15_18.56.38
Possible fixes
Can we just add no-cache to the initial fetch or reset on destroy of the component (though would that work if you nav direct to /logout