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 state = propsToState({
...data,
props,
router
})