Skip to content

Apollo Client v4 #11733#191

Open
PowerKiKi wants to merge 2 commits into
masterfrom
apollo-v4
Open

Apollo Client v4 #11733#191
PowerKiKi wants to merge 2 commits into
masterfrom
apollo-v4

Conversation

@PowerKiKi

Copy link
Copy Markdown
Member

Going forward the main differences in usage are:

 apollo
     .query({query: myQuery})
     .pipe(
+        ignoreErrors(),
         map(result => result.data.myQuery),
     );
 apollo
     .watchQuery({
         query: myQuery,
+        notifyOnNetworkStatusChange: false,
     })
     .valueChanges
     .pipe(
+        onlyCompleteData(),
         map(result => result.data.myQuery),
     );

Alos, Natural has a new createErrorLink(), with related tests moved from Epicerio. To make it reasonnable a feature-complete ErrorService now also lives in Natural, instead of in each projects with very minor differences.

Going forward the main differences in usage are:

```diff
 apollo
     .query({query: myQuery})
     .pipe(
+        ignoreErrors(),
         map(result => result.data.myQuery),
     );
```

```diff
 apollo
     .watchQuery({
         query: myQuery,
+        notifyOnNetworkStatusChange: false,
     })
     .valueChanges
     .pipe(
+        onlyCompleteData(),
         map(result => result.data.myQuery),
     );
```

Alos, Natural has a new `createErrorLink()`, with related
tests moved from Epicerio. To make it reasonnable a feature-complete
`ErrorService` now also lives in Natural, instead of in each projects
with very minor differences.
In hope to speed up transpilation and have better tree shaking and/or
chunking
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant