Skip to content

Commit

Permalink
Fix heading order in fragments affecting this page
Browse files Browse the repository at this point in the history
  • Loading branch information
hbuchel committed Jun 28, 2024
1 parent ff0e75c commit 3176079
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/fragments/lib/graphqlapi/flutter/subscribe-data.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ Amplify.Hub.listen(
);
```

#### SubscriptionStatus
### SubscriptionStatus

- **`connected`** - Connected and working with no issues
- **`connecting`** - Attempting to connect (both initial connection and reconnection)
Expand Down
6 changes: 3 additions & 3 deletions src/fragments/lib/graphqlapi/ios/subscribe-data.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ func createSubscription() {

</BlockSwitcher>

### Unsubscribing from updates
## Unsubscribing from updates

#### Async/Await
### Async/Await

To unsubscribe from updates, you can call `cancel()` on the subscription.

Expand All @@ -100,7 +100,7 @@ func cancelSubscription() {
}
```

#### Combine
### Combine

Calling `cancel()` on the sequence will disconnect the subscription from the backend. Any downstream subscribers will also be cancelled.

Expand Down

0 comments on commit 3176079

Please sign in to comment.