D
Size: a a a
DN
useEffect(() => {но есть ещё и дочерний роут stats/:id
dispatch(fetchData(usersOnPage, paginationOptions.currentPage));
setChildPath(null);
}, [dispatch, paginationOptions.currentPage]);не важно
useEffect(() => {
dispatch(fetchData(usersOnPage, paginationOptions.currentPage));
setChildPath(null);
}, [dispatch, paginationOptions.currentPage]);
useEffect(()=>{
if(childPath !== location.pathname && childPath !== null) {
dispatch(fetchData(usersOnPage, paginationOptions.currentPage));
dispatch(selectUser(null));
}
}, [childPath, location.pathname]);
BB
useEffect(() => {но есть ещё и дочерний роут stats/:id
dispatch(fetchData(usersOnPage, paginationOptions.currentPage));
setChildPath(null);
}, [dispatch, paginationOptions.currentPage]);не важно
useEffect(() => {
dispatch(fetchData(usersOnPage, paginationOptions.currentPage));
setChildPath(null);
}, [dispatch, paginationOptions.currentPage]);
useEffect(()=>{
if(childPath !== location.pathname && childPath !== null) {
dispatch(fetchData(usersOnPage, paginationOptions.currentPage));
dispatch(selectUser(null));
}
}, [childPath, location.pathname]);
RP
RP
RP
RP
DN
useEffect(()=>{```
if(childPath !== location.pathname && childPath !== null) {
dispatch(fetchData(usersOnPage, paginationOptions.currentPage));
dispatch(selectUser(null));
setChildPath(null)
}
}, [childPath, location.pathname]);
GK
dd
MZ
GK
☬
EM
V
GK
☬
0
ЖБ