We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Docs says that prepare is called after resolve but it's implemented in other way. Prepare waits only for download of files, and not resolve. https://github.com/wix/react-module-container/blob/master/docs/ANGULAR-LAZY-COMPONENT.md#fields https://github.com/wix/react-module-container/blob/86a1473b650edc88c40aeaff0fb299fb50cc3c3d/src/base-lazy-component.js#L21
Example of usage:
export class MusicManagerLazyPageComponent extends AngularLazyComponent { constructor(props = {}) { super(props, { files: ['file.min.js'], module: 'MusicManagerBm', component: 'mm-music-manager-root', resolve: () => { return Promise.all([loadExperiments(), loadLocaleFiles()]); }, prepare: ([experiments, locale]) => { angular.module('loaded').config(experimentsStorage => experimentsStorage.set(experiments)); }, }); } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Docs says that prepare is called after resolve but it's implemented in other way. Prepare waits only for download of files, and not resolve.
https://github.com/wix/react-module-container/blob/master/docs/ANGULAR-LAZY-COMPONENT.md#fields
https://github.com/wix/react-module-container/blob/86a1473b650edc88c40aeaff0fb299fb50cc3c3d/src/base-lazy-component.js#L21
Example of usage:
The text was updated successfully, but these errors were encountered: