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

Async provider #41

Open
ghost opened this issue Aug 30, 2018 · 1 comment
Open

Async provider #41

ghost opened this issue Aug 30, 2018 · 1 comment

Comments

@ghost
Copy link

ghost commented Aug 30, 2018

Hey guys,

is there any support for async providers / resolving dependencies asynchronously?

Example:

const configProvider: Provider = {
  async get () => {
    const config = await loadConfig(process.env.NODE_ENV)
    return config
  }
}

Many thanks
Juraj

@cosmoKenney
Copy link

cosmoKenney commented Sep 5, 2018

I'm wondering the same thing. I'd like to use webpack import() to lazy load chunks of my application. So that when a user hits a top-level route (this is a SPA app) for the first time I can lazy load the chunk then start displaying the components.

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

No branches or pull requests

1 participant