Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(aws-appsync) #342

Closed
wants to merge 36 commits into from
Closed

Conversation

haverchuck
Copy link
Contributor

Issue #, if available:
#334

Description of changes:
Updates apollo-cache-inmemory in accordance with this discussion (pointed out by customer).

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

hisham and others added 2 commits January 24, 2019 17:03
add promised version as valid types for CredentialsGetter - see awslabs#264
Parity with @aws-amplify/api on graphql package dependency
Copy link
Contributor

@manueliglesias manueliglesias left a comment

Choose a reason for hiding this comment

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

Can we review this to avoid duplicate packages?

~ yarn && yarn bootstrap && yarn list --pattern apollo
yarn list v1.7.0
├─ [email protected]
│  ├─ [email protected]
│  └─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
│  └─ [email protected]
└─ [email protected]

greimela and others added 2 commits February 19, 2019 14:04
…ning (awslabs#347)

Fixes awslabs#354 

This fixes an InvalidSignatureExceptions that occurs when using iamBasedAuthentication and the '@@controlEvents' variable in subscriptions
elorzafe and others added 5 commits March 12, 2019 11:00
I can't find anywhere in the console that I can download a file named AppSync.js... but I have aws-exports.js.

The docs are still very confusing when new to all of these libraries that can be mixed and matched.

I can get the Amplify CLI to work out of the box, but as soon as you try to add AWSAppSyncClient instead and use the Apollo client things get very confusing to me.
manueliglesias and others added 11 commits May 6, 2019 10:13
…n options (awslabs#401)

* fix(deltaSync): Read last sync timestamps from store if not present in options

* Remove expensive logging
* Relicensing to Apache 2.0

* Updating package.json license fields
* update jest

To include fix for:
jestjs/jest#6730

* Remove noEmitOnError from tsconfig

* Remove unneeded mock

* Fix test

Not sure why, but jest seems to have trouble loading some modules, the filter(Boolean) makes the test pass

* Dedupe packages

* Accept keyPrefix in config to allow per client storage in multi-client

* Pass keyPrefix when creating store

* Typescript fixes

* Add colon to keyPrefix in store

* Remove unused import

* Return false instead of undefined when response is not optimistic

* Enforce unique keyPrefixes among clients

Unit tests refactoring to account for module state (keyPrefixesInUse)

* Improve typings for auth options

* Make invalid auth type error non retryable

* Add test coverage for AWS_IAM auth mode

* Kepp client instances around to prevent garbage collection

* Use default prefixKey from redux-persist
It seems like the keys `aws-exports.js` have changed since writing the tutorial.
Passing an undefined to the path parameter of getValueByPath results in an
error. This change fixes that issues by setting the default value of the path
param to be an empty array.
Ashish-Nanda and others added 8 commits September 5, 2019 14:02
BREAKING CHANGE: This change adds support for React Native 0.60 but may not be compatible with RN < 0.59

* fix: Add support for React Native 0.60

* Updating package.json

* Updating yarn.lock
Adding instructions for using the library with React Native >= 0.60 after the 2.00 release
Adding `aws-appsync-auth-link` and `aws-appsync-subscription-link` packages
@ChrisFieldsII
Copy link

ChrisFieldsII commented Oct 30, 2019

Hello @elorzafe @manueliglesias ,

My company just released an app into production using the AppSync client and we were experiencing really bad memory issues/leaks. We were able to track it down to calling a mutation with an optimistic response which sometimes causes a +200MB increase in memory usage which never drops down to what it previously baselined at. After making a few mutations, the app eventually crashes.

We came across this issue which then led us to this issue.

We tested mutations with and without optimistic responses and can definitely confirm that this is the cause of our memory problem.

All of that to say that merging this PR in would really help us or anyone that plans on using this client long-term.

Thanks!

@sammartinez
Copy link
Contributor

sammartinez commented Oct 30, 2019

Running locally, fresh git clone, I am not seeing duplicates. @haverchuck can you fix the conflicts for the package.json and the yarn.lock and push the update for it?

aws-mobile-appsync-sdk-js [REDACTED]$ yarn list --pattern apollo
yarn list v1.17.3
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
│  ├─ [email protected]
│  └─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
│  ├─ [email protected]
│  │  └─ [email protected]
│  ├─ [email protected]
│  │  └─ [email protected]
│  ├─ [email protected]
│  │  └─ [email protected]
│  └─ [email protected]
└─ [email protected]
✨  Done in 0.74s.

@haverchuck
Copy link
Contributor Author

@ChrisFieldsII @manueliglesias @sammartinez This is an old PRs and it looks like there are some rebasing issues... I'm going to reopen a new one off of master.

@haverchuck haverchuck closed this Oct 30, 2019
@sammartinez
Copy link
Contributor

Sounds @haverchuck thank you!

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.