Przejdź obiekt do zapytania na router.push NextJS
import Router, { withRouter } from 'next/router'
performSearch = (event) => {
event.preventDefault();
Router.push({ pathname: '/results', state: { pattern: this.state.searchText } });
};
Ugliest Unicorn