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