You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm creating an app where I need 2 instances of the wrapper, one for each user/access-token. But when I make 2 instances, it seems like they are both the same instance.
I don't know if this is a problem with the wrapper, or my lacking JavaScript skills. But I can't find a generic JavaScript answer on StackOverflow.
Additional context
I'm making a react app and I installed the wrapper package using npm. Here is my project. I instantiate the wrappers in /src/Interspot.js and use them in /src/useSpotifyAPI.js
The text was updated successfully, but these errors were encountered:
I'm creating an app where I need 2 instances of the wrapper, one for each user/access-token. But when I make 2 instances, it seems like they are both the same instance.
prints:
Where I expected it to print:
The access token in both instances is set to the latest set statement.
Same thing even if I write:
I don't know if this is a problem with the wrapper, or my lacking JavaScript skills. But I can't find a generic JavaScript answer on StackOverflow.
Additional context
I'm making a react app and I installed the wrapper package using npm.
Here is my project. I instantiate the wrappers in /src/Interspot.js and use them in /src/useSpotifyAPI.js
The text was updated successfully, but these errors were encountered: