-
-
Notifications
You must be signed in to change notification settings - Fork 197
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 duplicate display studio sync #3171
Conversation
🦋 Changeset detectedLatest commit: 015ff32 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
|
Commit SHA:d9caba4841c614202bad7ddf299a7ed81b3c497a Test coverage results 🧪
|
Commit SHA:d9caba4841c614202bad7ddf299a7ed81b3c497a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesnt fix the issue for already duplicative registered providers. Also, the issue mentions this also happens for other sync providers such as Supernova, can you check that as well?
I'll be closing this in favor of #3173 Reasoning: Doing a uniqueness check on useEffect is an anti-pattern. We should always clean our data when we retrieve it. In our case, we already had a uniqueness check, but it was just not executed properly for some sync providers. In the case of Studio we always just compared the URL, never incldued the api key. In Supernova case, we didnt include the mapping. This now changes that, but also ALWAYS prefers the unique id. |
Resolves #3069
Fixes an error where the Tokens Studio Sync Provider in the plugin was showing up twice.
Type of change
How to test this
Screenshots or video (if necessary):