erdkse / adminlte-3-react

React 18.3.1 start-up project with AdminLTE 3.2.0 template
https://erdkse.com/projects/preview/adminlte-react
MIT License
262 stars 136 forks source link

Not working for mobile #40

Closed santiagoapp closed 3 years ago

santiagoapp commented 3 years ago

For some reason the app is not working on mobile, do you know what is happening in this case?

erdkse commented 3 years ago

I tested it there is not problem with the mobile. Can you describe more? What kind a problem?

santiagoapp commented 3 years ago

I tested it there is not problem with the mobile. Can you describe more? What kind a problem?

I've realized that the issue was caused because I integrate react-thunk and Redux Developer Tools in composeEnhancers, this is the fix of my project:

On store/index.js:

`import thunkMiddleware from 'redux-thunk'; import {createStore, combineReducers, applyMiddleware, compose} from 'redux'; import authReducer from './reducers/auth'; import menuReducer from './reducers/menu'; import modelReducer from './reducers/model';

const rootReducer = combineReducers({ auth: authReducer, menu: menuReducer, appData: modelReducer });

const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;

const store = createStore( rootReducer, composeEnhancers(applyMiddleware(thunkMiddleware)) );

export default store;`

Thanks dude.