Skip to content

feat(effects): add FEATURE_EFFECTS_INIT lifecycle action#5131

Open
netoctone wants to merge 1 commit intongrx:mainfrom
netoctone:main
Open

feat(effects): add FEATURE_EFFECTS_INIT lifecycle action#5131
netoctone wants to merge 1 commit intongrx:mainfrom
netoctone:main

Conversation

@netoctone
Copy link
Copy Markdown

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Other... Please describe:

What is the current behavior?

Currently, when app needs to wait for feature effects readiness, it can only use OnInitEffects.
If the app has a lot of feature effects and needs to wait for a group of them to be ready, it would require to add OnInitEffects on each effect in the group. And then to listen to all of the actions dispatched by each OnInitEffects.
This would be a lot of boilerplate and this kind of init logic would be pretty fragile.

What is the new behavior?

FEATURE_EFFECTS_INIT action is dispatched after all feature effects are added.
In similar fashion to existing ROOT_EFFECTS_INIT.

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

@netlify
Copy link
Copy Markdown

netlify bot commented Apr 1, 2026

Deploy Preview for ngrx-io ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit d8ed303
🔍 Latest deploy log https://app.netlify.com/projects/ngrx-io/deploys/69ccd4d4e93faf0008f6c7d0
😎 Deploy Preview https://deploy-preview-5131--ngrx-io.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@anjana-gururaj
Copy link
Copy Markdown

Much needed feature. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants