DO
function MyComponent() {
const someVars = useSelector(selectSomeVars);
const handleXX = () => {
doSomAsync().then(() => {
dispatch(someAction(someVars));
});
};
}Size: a a a
DO
function MyComponent() {
const someVars = useSelector(selectSomeVars);
const handleXX = () => {
doSomAsync().then(() => {
dispatch(someAction(someVars));
});
};
}DO
dispatch(updateSomeVars())А
А
DO
В
a
a
В
А
a
a
a
В
a
a
А
В
a
В