mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Add current props to state when data available (#13)
This commit is contained in:
parent
418fb84475
commit
ea61fe412a
|
@ -28,6 +28,7 @@ export default class App extends Component {
|
||||||
const props = data.props || this.state.props
|
const props = data.props || this.state.props
|
||||||
const state = propsToState({
|
const state = propsToState({
|
||||||
...data,
|
...data,
|
||||||
|
props,
|
||||||
router
|
router
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue