how to pass object in Router.push nextjs code example
Example: Pass object to query on Router.push NextJs
import Router, { withRouter } from 'next/router'
performSearch = (event) => {
event.preventDefault();
Router.push({ pathname: '/results', state: { pattern: this.state.searchText } });
};