Closed calvinramp closed 1 week ago
effects, entity, store-devtools, store
We have multiple effects importing into the forRoot in our app.module.ts
app.module.ts
app.module.ts eg.
import { effects } from './store/effects/index'; EffectsModule.forRoot(effects),
./store/effects/index.ts
import { ProductEffects } from "./product.effects"; import { ScenarioEffects } from "./scenario.effects"; import { OrganisationEffects, UserEffects, UserManagementEffects } from "../../views/user-management/redux/effects"; import { ActivityEffects } from "../../core/activity/store"; import { AnalyticsEffects } from "./analytics.effects"; import { PageEffects } from "./page.effects"; import { ReportingEffects } from "./reporting.effects"; export const effects = [ProductEffects, ScenarioEffects, UserManagementEffects, UserEffects, OrganisationEffects, ActivityEffects, AnalyticsEffects, PageEffects, ReportingEffects]
When using the vite builder of angular 18 we are seeing the following in the console.
I'd expect it to work as it was or is there some other way to import multiple effects.
NgRx: 18 Angular: 18 Node: v20
No response
I found the source of my problem, I had the 2 of the effects registered in forRoot and forFeature in a submodule.
forRoot
forFeature
Which @ngrx/* package(s) are the source of the bug?
effects, entity, store-devtools, store
Minimal reproduction of the bug/regression with instructions
We have multiple effects importing into the forRoot in our
app.module.ts
app.module.ts
eg../store/effects/index.ts
When using the vite builder of angular 18 we are seeing the following in the console.![Screenshot 2024-06-25 at 12 44 05](https://github.com/ngrx/platform/assets/130660450/3de593d1-68fa-4c47-913e-863d0f8e94c7)
Expected behavior
I'd expect it to work as it was or is there some other way to import multiple effects.
Versions of NgRx, Angular, Node, affected browser(s) and operating system(s)
NgRx: 18 Angular: 18 Node: v20
Other information
No response
I would be willing to submit a PR to fix this issue