kamilkisiela / apollo-angular

A fully-featured, production ready caching GraphQL client for Angular and every GraphQL server 🎁
https://apollo-angular.com
MIT License
1.5k stars 312 forks source link

Smaller bundle for `gql` #2312

Closed PowerKiKi closed 1 month ago

PowerKiKi commented 1 month ago

Casting, instead of wrapping, the existing gql function, save ~60 bytes, and avoid an extra function call at runtime

Checklist:

changeset-bot[bot] commented 1 month ago

🦋 Changeset detected

Latest commit: 60c4409e39ce30e271e80e327898390b9cf20b17

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | -------------- | ----- | | apollo-angular | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

github-actions[bot] commented 1 month ago
### 💻 Website Preview The latest changes are available as preview in: [https://fdc298a7.apollo-angular.pages.dev](https://fdc298a7.apollo-angular.pages.dev)