Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Added notifications for success/failure for offline operations #229

Merged
merged 2 commits into from
Jan 31, 2019

Conversation

jhellar
Copy link
Contributor

@jhellar jhellar commented Jan 31, 2019

@wtrocki
Copy link
Contributor

wtrocki commented Jan 31, 2019

@jhellar Do you mind mentioning this new api in docs as well?
It's really nice feature to have.

@wtrocki
Copy link
Contributor

wtrocki commented Jan 31, 2019

Reminder to myself to add this option to ionic showcase app (for verification)

@@ -121,10 +120,16 @@ export class OfflineQueueLink extends ApolloLink {
return new Promise((resolve, reject) => {
opEntry.subscription = forward(operation).subscribe({
next: result => {
if (this.listener && this.listener.onOperationSuccess) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Oftopic] Optional chaining in typescript will transpile that. More info https://medium.com/inside-rimeto/optional-chaining-in-typescript-622c3121f99b

@jhellar
Copy link
Contributor Author

jhellar commented Jan 31, 2019

@wtrocki thanks for review, I've added description to readme

Copy link
Contributor

@wtrocki wtrocki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed! Great job!

@wtrocki wtrocki merged commit 613a330 into aerogear:master Jan 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants