mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-06-16 18:29:08 +00:00
finish most of redux retrofit
This commit is contained in:
parent
52cb96baa3
commit
5899268b22
7 changed files with 64 additions and 17 deletions
|
@ -6,12 +6,17 @@ import configureStore from './store/configureStore'
|
|||
|
||||
import Wrapper from './components/wrapper'
|
||||
import AppRouter from './router'
|
||||
import { userInit } from './actions'
|
||||
|
||||
const store = configureStore()
|
||||
|
||||
window.__APP_STORE__ = store
|
||||
|
||||
class App extends Component {
|
||||
componentWillMount () {
|
||||
store.dispatch(userInit)
|
||||
}
|
||||
|
||||
render () {
|
||||
return (
|
||||
<Provider store={store}>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue