React Redux Tutorials - 11 - Middleware

preview_player
Показать описание

📱 Follow Codevolution

Middleware in Redux
Рекомендации по теме
Комментарии
Автор

I can't thank you enough !!
I have been really struggling to understand redux and you made it easy to understand, Thank you soooo much!!!

sumayaNoman
Автор

this really is the best redux course on youtube . Thanks

abelbeyene
Автор

Action is dispatched.
Action passes through middleware chain(for this example its logger).
Logger initial state logged
Logger action name logged
Action is sent to root-reducer.
root-reducer will send action to each and every subscribed reducer.
Each reducer returns an updated state.
Redux combines the updated states from all reducers to form the final next state.
Logger middleware prints the final next state.

this type of explaination is missing in every educator, i mean every educator like the subject matter experts who teaches in high paid courses.
simplify the concept to general english and make sure the sequence of steps are crystal clear

rithufake
Автор

This is how you would do it in 2024 if you are using node:

const { createLogger } = require("redux-logger");

const logger = createLogger();
const store = configureStore({
reducer: rootReducer,
middleware: (getDefaultMiddleware) => getDefaultMiddleware().concat(logger),
});

TabeMan
Автор

For those not working, try this:

const { createLogger } = require("redux-logger");

const logger = new createLogger();

const applyMiddleware = redux.applyMiddleware;

const store = createStore(rootReducer, applyMiddleware(logger));

aravindsanjeev
Автор

It should have included the point “what is a middleware” and “ways to create custom one”, then we can talk about utilising other people’s library

mayasur_nraj
Автор

Thank you. You saved my day. Code bless you

rabinmrongo
Автор

Hi sir, your videos are pretty good, please make video series on react-redux with redux saga.

hkdelhivlogs
Автор

I appreciate the way you explain each of the things

abapadxanepal
Автор

Is Middleware really a must in my react web app?

DenisSsendisa
Автор

Redux, beautifully explained. Thanks, Vishwas

{2022-09-27}

Pareshbpatel
Автор

learnt alot from thank you and do more videos bro

rajeshsangapogu
Автор

keep it up man! your technic is good which based on React Redux docs

dastngoldenboy
Автор

I got the error below: (Any reason why?)


return enhancer(createStore)(reducer, preloadedState);
^

TypeError: enhancer(...) is not a function

am
Автор

Most often problem in code are small mistake in script ;P

marcinkalmar
Автор

Hello Guys
I am facing one issue with implementing middleware
```return middleware(middlewareAPI);
^

TypeError: middleware is not a function```


I am getting this error. Anyone any idea ? I am using babel to compile and have used import like this ::
import logger from 'redux-logger';

isthatsahil
Автор

awesome man.. really appreciable work.

musiclovers
Автор

awesome! simple explanation to middleware

IntotheWildscape
Автор

Are you going to make video on how to create a custom middleware aslo?

kirankumarahir
Автор

Learn a lot from this video ThankYou sir❤

shubhendukumar
visit shbcf.ru