forked from phobal/ivideo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix HMR 'Aborted because 0 is not accepted' issue (#1386) (#1404)
v0.13.2
- Loading branch information
Showing
7 changed files
with
2,158 additions
and
2,044 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,22 @@ | ||
// @flow | ||
import React from 'react'; | ||
import React, { Component } from 'react'; | ||
import { Provider } from 'react-redux'; | ||
import { ConnectedRouter } from 'react-router-redux'; | ||
import Routes from '../routes'; | ||
|
||
type RootType = { | ||
type Props = { | ||
store: {}, | ||
history: {} | ||
}; | ||
|
||
export default function Root({ store, history }: RootType) { | ||
return ( | ||
<Provider store={store}> | ||
<ConnectedRouter history={history}> | ||
<Routes /> | ||
</ConnectedRouter> | ||
</Provider> | ||
); | ||
export default class Root extends Component<Props> { | ||
render() { | ||
return ( | ||
<Provider store={this.props.store}> | ||
<ConnectedRouter history={this.props.history}> | ||
<Routes /> | ||
</ConnectedRouter> | ||
</Provider> | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.