GithubHelp home page GithubHelp logo

Comments (5)

frodare avatar frodare commented on August 23, 2024 1

I will have to think about this one a little as it could get tricky. My gut tells me this should be fixable by changing the order of store enhancers so that addon-redux is processed after the middlewares enchancer. That way the actions would be cleaned up before getting to the addon-redux enhancer.

from addon-redux.

SebastienGllmt avatar SebastienGllmt commented on August 23, 2024 1

You're right -- changing the order of the enhancers fixed it. For redux-toolkit, I did it the following way

export const store = configureStore({
  reducer,
  middleware: getMiddleware(),
  enhancers: middlewares => [withReduxEnhancer, ...middlewares]
});

Maybe the importance of ordering should be mentioned in the docs

from addon-redux.

fabouru1985 avatar fabouru1985 commented on August 23, 2024

any advance in support middlewares?

from addon-redux.

natalyjazzviolin avatar natalyjazzviolin commented on August 23, 2024

Also wondering if there are any plans to support middleware!

from addon-redux.

nathanredblur avatar nathanredblur commented on August 23, 2024

it's not working well for me.
There is differences between the events that this add-on and redux-chrome shows.
and my component keep loading (even when I can see the data in the console log that I put in the render)
so, I change anything in my storybook file and save and then I can see the data in the component.

this is my store configuration.

import createSagaMiddleware from "redux-saga";
import { combineReducers, configureStore } from "@reduxjs/toolkit";
import { reduxOrmReducer, reduxOrmSagas } from "myOrm";
import { all, fork } from "typed-redux-saga";
import { enhancer as withReduxEnhancer } from "addon-redux";

const webReducers = combineReducers({
  ...reduxOrmReducer,
});

function* webSaga() {
  yield* all([fork(reduxOrmSagas)]);
}

const sagaMiddleware = createSagaMiddleware();

const store = configureStore({
  reducer: webReducers,
  middleware: [sagaMiddleware],
  enhancers: (middlewares) => [withReduxEnhancer, ...middlewares], 
});

sagaMiddleware.run(webSaga);

export default store;

CleanShot 2022-08-02 at 17 17 38

CleanShot 2022-08-02 at 17 21 17

any Idea?

from addon-redux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.