Skip to content

Fix lifecycle method usage#14

Merged
crutchcorn merged 2 commits intomainfrom
fix-lifecycle-method-usage
Oct 9, 2024
Merged

Fix lifecycle method usage#14
crutchcorn merged 2 commits intomainfrom
fix-lifecycle-method-usage

Conversation

@crutchcorn
Copy link
Copy Markdown
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

@netlify
Copy link
Copy Markdown

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
@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