We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fb1001c + 775d47c commit b9dbf86Copy full SHA for b9dbf86
docs/spfx/subscribe-to-list-notifications.md
@@ -32,9 +32,9 @@ export default class LatestDocumentsWebPart extends BaseClientSideWebPart<ILates
32
private _listSubscriptionFactory: ListSubscriptionFactory;
33
private _listSubscription: IListSubscription;
34
35
- private createListSubscription(): void {
+ private async createListSubscription(): Promise<void> {
36
this._listSubscriptionFactory = new ListSubscriptionFactory(this);
37
- this._listSubscription = this._listSubscriptionFactory.createSubscription({
+ this._listSubscription = await this._listSubscriptionFactory.createSubscription({
38
listId: Guid.parse(this.properties.listId),
39
callbacks: {
40
notification: this._loadDocuments.bind(this)
0 commit comments