DB
Size: a a a
DB
G
AM
Y
AM
Y
AM
TK
SS
TK
LV
Y
LV
DB
AR
AR
🌀
OM
import Router from 'next/router';
import { createBrowserHistory } from 'history';
const history = createBrowserHistory();
history.listen((location) => {
if (location.action === 'POP') {
dispatch(updateScreenStep('back'));
Router.push('/new'); // всегда обновляю урлу, что-бы не пошло дальше неё
}
});
IH
import Router from 'next/router';
import { createBrowserHistory } from 'history';
const history = createBrowserHistory();
history.listen((location) => {
if (location.action === 'POP') {
dispatch(updateScreenStep('back'));
Router.push('/new'); // всегда обновляю урлу, что-бы не пошло дальше неё
}
});
IH