Skip to content

Fix lifecycle method usage #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 9, 2024
Merged

Fix lifecycle method usage #14

merged 2 commits into from
Oct 9, 2024

Conversation

crutchcorn
Copy link
Member

As pointed out by @MShake on StackOverflow:

https://stackoverflow.com/questions/79070506/enable-to-retrieve-data-initialize-by-a-dispatched-action-when-the-component-is

Any actions dispatched by OnInit were not being tracked by injectSelector due to the timing of effect.

This PR fixes this issue by removing effect to do cleanup in favor of DestroyRef

Copy link

netlify bot commented Oct 9, 2024

Deploy Preview for angular-redux-docs canceled.

Name Link
🔨 Latest commit 077115e
🔍 Latest deploy log https://app.netlify.com/sites/angular-redux-docs/deploys/670705a77626260008999708

@crutchcorn crutchcorn merged commit a5919b3 into main Oct 9, 2024
6 checks passed
@crutchcorn crutchcorn deleted the fix-lifecycle-method-usage branch October 9, 2024 22:56
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.

1 participant