Skip to content

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