question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Multiple instances in dropdown

See original GitHub issue

I setup the extension as specified in the docs

import { applyMiddleware, compose, createStore } from "redux";
import thunk from "redux-thunk";
import rootReducer from "./reducers";

const composeEnhancers =
  typeof window === "object" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__
    ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({
        // Specify extension’s options like name, actionsBlacklist, actionsCreators, serialize...
      })
    : compose;

const enhancer = composeEnhancers(applyMiddleware(thunk));
const store = createStore(rootReducer, enhancer);

export default store;

But there are always multiple instances listed in the dropdown: screen shot 2018-01-17 at 10 35 55 pm

Also autoselect instance does not seem to work. Why are there multiple instances listed? It would be great to be able to open the devtools and immediately see the useful actions.

Thanks!

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:32
  • Comments:24 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
OnkelTemcommented, Dec 11, 2019

So what are those instances and what do they exactly mean?

I have 2 items with the same name in that drop-down in a basic app. The first one lists my actions, while the second one is empty. Here is a screencast of the issue: https://www.screencast.com/t/7UoAbeAPh

I underline that I don’t create many stores, I’m using just one:

From my index.js:

import { createStore, applyMiddleware, compose  } from "redux";
import createSagaMiddleware from "redux-saga";

import rootReducer from "./store/reducers";
import rootSaga from "./store/sagas";

// noinspection JSUnresolvedVariable
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;

const sagaMiddleware = createSagaMiddleware();
const store = createStore(
  rootReducer,
  composeEnhancers(applyMiddleware(logger, sagaMiddleware))
);
sagaMiddleware.run(rootSaga);

What I do wrong?

4reactions
OllyDScommented, Jun 1, 2021

I had this issue whilst implementing React Admin in another application. Took me a moment to figure out that the issue was that the boilerplate code I copied over for initialising the store meant a new store was initialised on each render:

const App = () => (
    <Provider
        store={createAdminStore({
            authProvider,
            dataProvider,
            history,
        })}
    >
        <Admin
            authProvider={authProvider}
            dataProvider={dataProvider}
            history={history}
            title="My Admin"
        >
        ...
    </Provider>
);

Solution was to initiate store outside of the component (SO post)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting values from multiple instances of dropdown menu
I am working on a small project where I have a graph with 12 nodes, the user assigns values to each node with...
Read more >
Dropdown menu multiple instances - Adobe Support Community ...
Hi, I am creating a form with three instances of a dropdown menu. All three menus have the same name as I want...
Read more >
Windows 7 Drop-down Lists Combo Boxes - Win32 apps
Windows 7 drop-down lists help users make a choice among a list of mutually exclusive values.
Read more >
Create a drop-down list - Microsoft Support
You can help people work more efficiently in worksheets by using drop-down lists in cells. Drop-downs allow people to pick an item from...
Read more >
Video: Drop-down list settings - Microsoft Support
... a comma-delimited list, a cell range, or a named range to define the options in a drop-down list. ... Create and manage...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found