1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

Ngrx asynchronous initial state

Discussão em 'Angular' iniciado por Web Dev Josh, Outubro 2, 2024.

  1. Web Dev Josh

    Web Dev Josh Guest

    This is my first question so please be gentle.

    I'm using ngrx/store in my angular app and I wanted to set the initial state of my reducer functions using data from firebase. However, without a constructor function in my reducer.ts file, I'm unsure of how to perform an async action.

    I'm aware of ngrx effects and how to use them, but I don't see a way to set my reducers initial state using effects.

    Hopefully, there's a simple example of this someone wouldn't mind posting to help a fledgling developer like myself.

    Continue reading...

Compartilhe esta Página