Skip to content

v0.5 to v1.0 Migration Guide

Jenna Salau edited this page Feb 12, 2018 · 1 revision

There is one small breaking change in the migration to v1.0

This is related to resolving components asyncronosly via the registerAsync api. See issue #28 for more details.

Please update your container async registrations

from

container.registerAsync(System.import('./myComponent'))

to

container.registerAsync(() => System.import('./myComponent'))

This method now needs to be passed a function that returns a promise.