Skip to content

fix: prevent plugin freeze on stale Slot node IDs during theme switching#3839

Draft
akshay-gupta7 wants to merge 1 commit intomainfrom
akshay/fix-slots-them-freezing-issue
Draft

fix: prevent plugin freeze on stale Slot node IDs during theme switching#3839
akshay-gupta7 wants to merge 1 commit intomainfrom
akshay/fix-slots-them-freezing-issue

Conversation

@akshay-gupta7
Copy link
Copy Markdown
Contributor

Why does this PR exist?

Closes #3838

What does this pull request do?

Testing this change

Additional Notes (if any)

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 10, 2026

⚠️ No Changeset found

Latest commit: a9edad4

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@codacy-production
Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 duplication

Metric Results
Duplication 0

View in Codacy

TIP This summary will be updated as you push new changes. Give us feedback

@github-actions
Copy link
Copy Markdown
Contributor

Commit SHA:e0592ee469cebfe9783f6d93acfb102546b53e29

Test coverage results 🧪

Code coverage diff between base branch:main and head branch: akshay/fix-slots-them-freezing-issue 
Status File % Stmts % Branch % Funcs % Lines
🟢 total 61.5 (0.03) 52.99 (0.09) 59.3 (0.01) 61.88 (0.01)
🔴 packages/tokens-studio-for-figma/src/plugin/SharedDataHandler.ts 34.48 (-0.52) 10 (0) 66.66 (0) 34.48 (-0.52)
🟢 packages/tokens-studio-for-figma/src/plugin/setValuesOnVariable.ts 84.65 (0.12) 77.33 (0.15) 82.35 (0) 84.88 (0.14)
🟢 packages/tokens-studio-for-figma/src/plugin/asyncMessageHandlers/applySiblingStyle.ts 45.65 (1.47) 56 (-0.25) 66.66 (6.66) 42.85 (1.39)
🔴 packages/tokens-studio-for-figma/src/utils/figma/variableMetadata.ts 80 (-0.95) 83.33 (2.08) 80 (0) 83.33 (-3.33)

@github-actions
Copy link
Copy Markdown
Contributor

Commit SHA:e0592ee469cebfe9783f6d93acfb102546b53e29
Current PR reduces the test coverage percentage by 1 for some tests

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.

Plugin freezes on theme switch when components are inside Figma Slots

1 participant