Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

296
Views
React-Native, Redux / El estado anterior recibido por el reductor tiene un tipo de "función" inesperado

Estoy tratando de usar redux en react-native pero ocurrió un error. Busqué otra pregunta similar, pero no puedo solucionarlo. ¿Qué tengo que hacer?

 import { StatusBar } from 'expo-status-bar'; import React from 'react'; import {Provider} from 'react-redux'; import { createStore, applyMiddleware, compose } from 'redux'; import promiseMiddleware from 'redux-promise'; import ReduxThunk from 'redux-thunk'; import Reducer from './src/_reducers' import { composeWithDevTools } from 'redux-devtools-extension'; import { createBottomTabNavigator } from '@react-navigation/bottom-tabs'; import Auth from './src/hoc/auth'; import { NavigationContainer } from '@react-navigation/native'; import { createStackNavigator } from '@react-navigation/stack'; import LoginScreen from './src/components/login/LoginScreen'; import RegisterScreen from './src/components/register/RegisterScreen'; import LandingScreen from './src/components/landing/LandingScreen'; const createStoreWithMiddleware = composeWithDevTools(applyMiddleware(promiseMiddleware, ReduxThunk))(createStore); const Stack = createStackNavigator(); export default function App() { return ( <Provider store={createStoreWithMiddleware( Reducer, window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__() )} > <NavigationContainer> <Stack.Navigator initalRouteName="Main"> <Stack.Screen name="Login" component={Auth(LoginScreen, null)} options={{ headerShown: false}}/> <Stack.Screen name="Register" component={Auth(RegisterScreen, null)} options={{ headerShown: false}}/> <Stack.Screen name="Landing" component={Auth(LandingScreen, null)} options={{ headerShown: false}}/> </Stack.Navigator> </NavigationContainer> </Provider> ); }

[2] [15:23:25] El estado anterior recibido por el reductor tiene un tipo de "función" inesperado. Se esperaba que el argumento fuera un objeto con las siguientes claves: "usuario", "propietario", "tienda" [2] en node_modules/expo/build/logs/LogSerialization.js:155:14 en _captureConsoleStackTrace [2] en node_modules/expo /build/logs/LogSerialization.js:41:26 en serializeLogDataAsync [2] - ... 9 marcos de pila más de los componentes internos del marco

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!