D
Size: a a a
DN
useEffect(() => {
dispatch(fetchData(usersOnPage, paginationOptions.currentPage));
setChildPath(null);
}, [dispatch, paginationOptions.currentPage]);не важно
но есть ещё и дочерний роут stats/:id 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(() => {
dispatch(fetchData(usersOnPage, paginationOptions.currentPage));
setChildPath(null);
}, [dispatch, paginationOptions.currentPage]);не важно
но есть ещё и дочерний роут stats/:id 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
ЖБ