Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

238
Vistas
NGRX store is not instantiating in angular

I am working on a new project with NGRX store. NGRX store is not instantiating. When I use redux develop tool in chrome it always show me undefined. I have attached the intial structure of my ngrx store. Please let me know what is missing. Thank you

app.reducers.ts

import { ActionReducerMap, combineReducers } from '@ngrx/store';

import { PointReducers } from '../point/shared/store/point.reducers';
import { AppState } from './app.state';

export const appReducers: ActionReducerMap<AppState> = {
  point: combineReducers({
    closingTab: PointReducers.closingTab,
    configTab: PointReducers.configTab,
    postTab: PointReducers.postTab,
  })
};

app.state.ts

import { PointMainState } from '../point/shared/store/point-main.state';

export interface AppState {
  point: PointMainState;
}

store.index.ts

import { StoreModule } from '@ngrx/store';

export const StoreRootModuleIndex = [
  StoreModule.forRoot(
    {},
    {
      runtimeChecks: {
        strictStateImmutability: false,
        strictActionImmutability: false,
        strictStateSerializability: false,
        strictActionSerializability: false
      }
    }
  )
];

store.reducers.ts

import { Action, ActionReducer } from '@ngrx/store';

import { AppState } from './app.state';

export function storeMetaReducers(reducer: ActionReducer<any>) {
  return function (state: AppState | undefined, action: Action) {
    const newState = reducer(state, action);
    return newState;
  };
}

about 4 years ago · Santiago Gelvez
1 Respuestas
Responde la pregunta

0

You have to add the reducers to the config. https://ngrx.io/guide/store/reducers#registering-root-state

export const StoreRootModuleIndex = [
  StoreModule.forRoot(
    // 👇 add reducers here
    {},
    {
      runtimeChecks: {
        strictStateImmutability: false,
        strictActionImmutability: false,
        strictStateSerializability: false,
        strictActionSerializability: false
      }
    }
  )
];
about 4 years ago · Santiago Gelvez Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda