From aa810e92ba8a570b3c173f39c1699d6184956de6 Mon Sep 17 00:00:00 2001 From: Jamal Ahmed <40495564+j8ahmed@users.noreply.github.com> Date: Wed, 2 Aug 2023 11:39:05 -0400 Subject: [PATCH] Update observable.md - remove create() - deprecated Remove the reference to the old `create` method on the Observable. with the standard `new Observable()` which is used everywhere else. --- docs_app/content/guide/observable.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs_app/content/guide/observable.md b/docs_app/content/guide/observable.md index 71f83120de..0fc1bbe39a 100644 --- a/docs_app/content/guide/observable.md +++ b/docs_app/content/guide/observable.md @@ -408,7 +408,7 @@ subscription.unsubscribe(); When you subscribe, you get back a Subscription, which represents the ongoing execution. Just call `unsubscribe()` to cancel the execution. -Each Observable must define how to dispose resources of that execution when we create the Observable using `create()`. You can do that by returning a custom `unsubscribe` function from within `function subscribe()`. +Each Observable must define how to dispose resources of that execution when we create the Observable using `new Observable(function subscribe() {...})`. You can do that by returning a custom `unsubscribe` function from within `function subscribe()`. For instance, this is how we clear an interval execution set with `setInterval`: