-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Query/UI: state is shared between windows #4004
Comments
The issue you mentioned seems to be for multiple panels in the same window. What should the desired behviour be? The new browser window/tab being treated like a new panel? |
#2578 was for all panels in general; the partial fix made it work for browser instances which only have a single window open. Desired behaviour is an interesting question - there are several reasonable options. The current behaviour is obviously wrong, but it's less obvious which of the options is right. Some options include:
|
Ah yes, we identify the first panel as This can be solved if we can somehow uniquely identify each tab, but the problem is, there is no way to know if multiple tabs are open and then which tab we are currently in. I can't think of an easy way to solve this without completely removing the localStorage persistence layer. |
The problem is that the changing the settings for one panel doesn't seem to update it across the diff browser tabs open (the UI doesn't show the correct options, but requests do). Also the number of panels across tabs aren't the same. Would be great if we could listen for changes in localStorage and change that. Completely removing the layer and relying on something else seems to be a long-term goal, right? |
What is the localStorage persistence supposed to accomplish? I've always found it confusing that two people will get different results from the same link, depending on what is set in there. |
Should store options for multiple panels and help reflect that in the UI and ensure there's no sharing of state between those panels. |
#2578 was only partially fixed, and the same problem still occurs when multiple browser windows are used.
Reproduction sequence:
The text was updated successfully, but these errors were encountered: