Add current props to state when data available (#13)
This commit is contained in:
parent
418fb84475
commit
ea61fe412a
1 changed files with 1 additions and 0 deletions
|
@ -28,6 +28,7 @@ export default class App extends Component {
|
|||
const props = data.props || this.state.props
|
||||
const state = propsToState({
|
||||
...data,
|
||||
props,
|
||||
router
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in a new issue