import React from 'react' ; import ReactDOM from 'react-dom' ; import { Provider } from 'react-redux' ; import App from './App' ; import reportWebVitals from './reportWebVitals' ; import plugins from './app/core/plugins' ; import { store } from './app/store' ; import { userActions } from './app/store/slices/user' ; import { teamActions } from './app/store/slices/team' ; import { planThunks } from './app/store/slices/plan' ; import { productsThunks } from './app/store/slices/products' ; import storageThunks from './app/store/slices/storage/storage.thunks' ; import { taskManagerThunks } from './app/store/slices/taskManager' ; import { sessionActions } from './app/store/slices/session' ; import { referralsThunks } from 'app/store/slices/referrals' ; import './index.scss' ; plugins . forEach ( ( plugin ) => plugin . install ( store ) ) ; store . dispatch ( userActions . initialize ( ) ) ; store . dispatch ( teamActions . initialize ( ) ) ; store . dispatch ( sessionActions . initialize ( ) ) ; store . dispatch ( storageThunks . initializeThunk ( ) ) ; store . dispatch ( planThunks . initializeThunk ( ) ) ; store . dispatch ( productsThunks . initializeThunk ( ) ) ; store . dispatch ( taskManagerThunks . initializeThunk ( ) ) ; store . dispatch ( referralsThunks . initializeThunk ( ) ) ; ReactDOM . render ( < React . StrictMode > < Provider store = { store } > < App /> < /Provider> < /React.StrictMode>, document.getElementById('root')); reportWebVitals ( ) ;