1
0
Fork 0
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:
Dan Zajdband 2016-10-16 01:25:13 -04:00 committed by Guillermo Rauch
parent 418fb84475
commit ea61fe412a

View file

@ -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
}) })