mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
10 lines
255 B
JavaScript
10 lines
255 B
JavaScript
import { withRouter } from "next/router";
|
|
|
|
export default withRouter(class extends React.Component {
|
|
componentWillReceiveProps(nextProps) {
|
|
if (this.props.router.query !== nextProps.router.query) {
|
|
const test = this.props.router
|
|
}
|
|
}
|
|
});
|