Skip to content

effects not dispatched with build --prod #1888

@adrienpsl

Description

@adrienpsl

Minimal reproduction of the bug/regression with instructions:

Github repo : https://github.com/adrienpsl/test-ngrx-data-effects

Expected behavior:

With ng build --prod :

  1. I call service.getAll() from my component
  2. data/action that extend EntityCollectionServiceBase are logged.
  3. data/effects that extends EntityCollectionServiceBase are not triggered or logged
    in the storeDevTool (that I that I have activated in production).

Versions of NgRx, Angular, Node, affected browser(s) and operating system(s):

{
      // ngrx
      "@ngrx/data": "^8.0.0-beta.2",
      "@ngrx/effects": "github:ngrx/effects-builds",
      "@ngrx/entity": "github:ngrx/entity-builds",
      "@ngrx/router-store": "github:ngrx/router-store-builds",
      "@ngrx/store": "github:ngrx/store-builds",
      
      // angular cli
      "@angular/cli": "~8.0.0-rc.3",
      "@angular/compiler-cli": "~8.0.0-rc.4",
      
      // angular
      "@angular/compiler": "~8.0.0-rc.4",
      "@angular/core": "~8.0.0-rc.4",
}

Other information:

is this related to : https://github.com/l3ender/ngrx-aot/pull/1 ?

[ ] Yes (Assistance is provided if you need help submitting a pull request)
[X] No

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