apollo-client
apollo-client copied to clipboard
Error: While trying to resolve module `@apollo/client` workaround causes issue in other libraries
Same issue reported here:
https://github.com/apollographql/apollo-client/issues/9194
and here:
https://github.com/apollographql/apollo-client/issues/9531
workaround:
https://github.com/apollographql/apollo-client/blob/main/CHANGELOG.md#apollo-client-354-2021-11-19
The suggested workarounds causes an issue with AWS Amplify Cognito Authentication in React Native:
After successfully signing in I then close the app. When I reopen the App I am logged out and need to log in again.
If I do not use the workaround I can reopen the app and still be logged in.
I have no idea why this is happening other than this one detail (the use of the workaround).
Will there be a fix in the future that does not require the workaround?
AWS closed the same issue on their end because they consider it a third party library issue. Seems like we are getting stuck in a catch 22 situation.
https://github.com/aws-amplify/amplify-js/issues/9599