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

Multiple Amplify.configure() in the same project #1205

Closed
SiddharthChoudhary opened this issue May 5, 2021 · 3 comments
Closed

Multiple Amplify.configure() in the same project #1205

SiddharthChoudhary opened this issue May 5, 2021 · 3 comments
Labels
core Amplify Core components feature-request Request a new feature

Comments

@SiddharthChoudhary
Copy link

Is your feature request related to a problem? Please describe.
Hello all, whoever is active on this thread. I have been facing an issue exactly like this. Currently, I am building an SDK for our team and that SDK is for iOS which uses AWS REST APIs to interact with API GW. I am using Amplify for that. Everything works as long as the client app importing our SDK doesn't have their own Amplify setup.

When it does, one ends up in a situation where you can't configure Amplify twice! like Amplify.configure(). Also, not to mention the conflicts between configuration.json files sometimes. We are planning to move away from Amplify now cause even for just hitting one API request there're bunch of configurations and setup needed which doesn't even work for this use case.

So, before doing that, I wanted to ask someone here that is it even possible to make this work? Using Amplify SDK as a third party tool in our own SDK and then to avoid clashes between the client app leveraging our SDK at the very end.

Describe the solution you'd like
To have a multiple Amplify.configure() object support in the same project

Describe alternatives you've considered
Trying to set the configuration at the runtime but I am not sure if that's gonna work

Additional context
It's similar to this issue here :- aws-amplify/amplify-js#2501

@ruiguoamz ruiguoamz added core Amplify Core components feature-request Request a new feature pending-triage Issue is pending triage labels May 5, 2021
@github-actions
Copy link
Contributor

This issue is stale because it has been open for 14 days with no activity. Please, provide an update or it will be automatically closed in 7 days.

@github-actions github-actions bot added the closing soon This issue will be closed in 7 days unless further comments are made. label Jun 19, 2021
@diegocstn diegocstn removed the closing soon This issue will be closed in 7 days unless further comments are made. label Jun 19, 2021
@atierian atierian removed the pending-triage Issue is pending triage label Nov 21, 2022
@atierian atierian closed this as completed Sep 8, 2023
@mmolinahn
Copy link

@atierian You market this as completed, but I can't find the PR or docs on how to use the new feature

@atierian
Copy link
Member

atierian commented Nov 8, 2023

This was closed in favor of #1584

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Amplify Core components feature-request Request a new feature
Projects
None yet
Development

No branches or pull requests

5 participants