Skip to main content

@microsoft/fast-element > Notifier > unsubscribe

Notifier.unsubscribe() method

Unsubscribes from notification of changes in an object's state.

Signature:
unsubscribe(subscriber: Subscriber, propertyToUnwatch?: any): void;

Parameters

ParameterTypeDescription
subscriberSubscriberThe object that is unsubscribing from change notification.
propertyToUnwatchanyThe name of the property that the subscriber is no longer interested in watching.
Returns:

void

Remarks

Some implementation may or may not require the propertyToUnwatch.