-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Instance auto-switches undesirably #1000
Comments
If you would be able to create a minimal reproduction showing the issue that would be extremely helpful. |
@Methuselah96 here you go: rart/redux-devtools-issue-1000 To reproduce:
redux-devtools-issue-1000.mov |
Have the same Issue :( |
I also have the same issue! It's really frustrating having to wait for the 'top' state to settle before being able to change to the iFrame state without it auto-switching. The ability to turn off the auto-switching or 'lock' the active instance would be an ideal fix for this. |
Still this issue exist. It was working with redux toolkit version 1.7.2. We updated the redux toolkit version to now 1.9.3 and we started getting this problem for Iframe applications. can we get the help for this problem? |
I 100% agree with this. We recently pulled in a non-NPM vendor chatbot script/library/package and have this same issue. Going to pursue with the vendor about either getting them to turn their devtools implementation off in production (preferred, because that's how it should be) or namespacing their events so I can set them to ignore, but having this lock to whatever instance the developer selected instead of flipping between whenever an event was fired would be GREAT I can take a swing at it when I get time, but have no idea where to look at the moment and am hesitant to spend the time if maintainers are not at all interested in doing this/fixing this. |
@greg5green I'm not the main DevTools maintainer, but yeah, we're generally interested in useful/meaningful PRs as a whole. If you have time to look into it, please do! |
@markerikson If you could ping someone to comment on what file/part of the monorepo this would even be in, that would be appreciated. The "Development" section isn't great so the barrier to entry here is pretty high |
@greg5green : hmm. I'm familiar with a couple bits of this repo, but more so the devtools internal logic than the UI. Searching for "Autoselect Instances", I see https://github.com/reduxjs/redux-devtools/blob/58a8135b085cd2b04a688c639ff62f782da14b8d/packages/redux-devtools-app/src/components/InstanceSelector.tsx , which is reading from redux-devtools/packages/redux-devtools-app/src/actions/index.ts Lines 235 to 241 in 58a8135
selectInstance action creator, which is probably what's being used to trigger the change.
|
Annoyed by this issue for years, I decided to take some time and I found the problem: #1692 |
I have an app that has an iframe within. There's a redux instance on the top frame and another instance (different app) inside the iframe. The tools have the instance switcher dropdown which shows 3 values: "autoselect instance", "instance 1" and "instance 2".
No matter what's selected on the instance switcher, when ever an action happens on the top frame instance (i.e. instance 1), the tools go back to showing/selecting that instance — even when the action occurs on the instance 2.
It doesn't switch to instance 2 from instance one ever, only from 2 to 1 for all events.
It gets very disruptive when you're trying to debug on instance 2. It feels a lot like a bug.
The text was updated successfully, but these errors were encountered: