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

Implement APP_INITIALIZER #375

Open
Nightsphere opened this issue Apr 22, 2021 · 0 comments
Open

Implement APP_INITIALIZER #375

Nightsphere opened this issue Apr 22, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request high Priority: next release if possible S Size: day or less

Comments

@Nightsphere
Copy link
Collaborator

Developing SNODAS has helped me understand Angular in a few ways I hadn't before. SNODAS uses a DI (dependency injection) token that will perform any tasks, including asynchronous ones, as the app initializes. This makes it so any necessary data is already obtained by the app before it's needed, so there's no need for components to wait to use it. This is especially helpful when using configuration data, which the InfoMapper has quite a lot of.

As of this issue creation, there are still a few unwanted setTimeout functions being called. Using Angular's APP_INITIALIZER should be able to finally let the InfoMapper break free from those.

@Nightsphere Nightsphere added enhancement New feature or request high Priority: next release if possible S Size: day or less labels Apr 22, 2021
@Nightsphere Nightsphere self-assigned this Apr 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request high Priority: next release if possible S Size: day or less
Projects
None yet
Development

No branches or pull requests

1 participant