Skip to content

Instantly share code, notes, and snippets.

@andrewconnell
Last active April 24, 2025 19:27
Show Gist options
  • Select an option

  • Save andrewconnell/769f649c589ba8908c5867cfc5b76fbe to your computer and use it in GitHub Desktop.

Select an option

Save andrewconnell/769f649c589ba8908c5867cfc5b76fbe to your computer and use it in GitHub Desktop.
private _createList(): void {
//eslint-disable-next-line @typescript-eslint/no-floating-promises
( async () => {
const module = await import (
/* webpackChunkName: 'list-manager-service' */
'../../services/ListManagerService'
);
const listManager = new module.ListManagerService(
this.context.pageContext.web.absoluteUrl,
this.context.spHttpClient);
await listManager.createList();
})();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment