Skip to content

Commit eea24c9

Browse files
committed
Add shallow routing support.
1 parent 4c88c5a commit eea24c9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pages/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default class extends React.Component {
3737

3838
showPhoto (e, id) {
3939
e.preventDefault()
40-
Router.push(`/?photoId=${id}`, `/photo?id=${id}`)
40+
Router.push(`/?photoId=${id}`, `/photo?id=${id}`, { shallow: true })
4141
}
4242

4343
render () {

0 commit comments

Comments
 (0)