Skip to content
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

Fix bug using injectable properties from ExecuteSectionAsync #73

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

DamianEdwards
Copy link
Owner

The slice was not being initialized before dispatching to the layout to render, so when the layout called into the ExecuteSectionAsync method on the slice the injectable properties weren't set yet. Fixed by ensuring that the slice is initialized before dispatching to layout for rendering. Updated the injectable properties sample page to make it rely on the injected service from its override of ExecuteSectionAsync so the sample covers this scenario.

Fixes #72

@DamianEdwards DamianEdwards merged commit c6f6438 into main Dec 17, 2024
1 check passed
@DamianEdwards DamianEdwards deleted the FixInjectablesInExecuteSection branch December 17, 2024 17:49
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.

accessing injected services in ExecuteSectionAsync does not work
1 participant