Thanks to visit codestin.com
Credit goes to Github.com

Skip to content
This repository was archived by the owner on Jan 10, 2018. It is now read-only.
This repository was archived by the owner on Jan 10, 2018. It is now read-only.

Ngrx/store/init is Fired Twice #280

@JimLynchCodes

Description

@JimLynchCodes

This seems like a bug to me...

I have created a simple reducer which logs out the action that comes in:

import {ActionReducer, Action} from "@ngrx/store";
import {State, intitialState} from "../state/main-state";
import {INCREMENT, EVENT_FROM_EFFECT} from "../actions/main-action-creator";

export const mainReducer: ActionReducer<State> =
  (state = intitialState, action: Action) => {

    console.log('Action came in! ' + action.type);

  };

But when I test this is chrome I get the "init" action firing twice. Is there any good reason for firing it twice?

jimsngrxeg

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions