Skip to content

fix(agentic-localization): fix AbortController illegal invocation in LocaleNavbar#6

Merged
nkgentile merged 1 commit intomainfrom
fix/agentic-localization/locale-navbar-abort-controller
Mar 3, 2026
Merged

fix(agentic-localization): fix AbortController illegal invocation in LocaleNavbar#6
nkgentile merged 1 commit intomainfrom
fix/agentic-localization/locale-navbar-abort-controller

Conversation

@kenjonespizza
Copy link
Copy Markdown
Contributor

@kenjonespizza kenjonespizza commented Mar 3, 2026

Summary

  • Fixes studio crash ("Illegal invocation") in LocaleNavbar caused by destructuring abort from AbortController, which loses the this binding
  • Keeps a reference to the controller object and calls controller.abort() in the effect cleanup instead
image

…LocaleNavbar

Destructuring `abort` from `new AbortController()` loses the `this`
binding, causing "Illegal invocation" when the cleanup runs. Keep a
reference to the controller and call `controller.abort()` instead.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 3, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ai-shopping-assistant Building Building Preview, Comment Mar 3, 2026 3:37pm

Request Review

@kenjonespizza kenjonespizza temporarily deployed to agentic-localization March 3, 2026 15:37 — with GitHub Actions Inactive
@kenjonespizza kenjonespizza temporarily deployed to ai-shopping-assistant March 3, 2026 15:37 — with GitHub Actions Inactive
@kenjonespizza kenjonespizza requested a review from nkgentile March 3, 2026 15:39
@nkgentile nkgentile merged commit 9f680a2 into main Mar 3, 2026
4 checks passed
@nkgentile nkgentile deleted the fix/agentic-localization/locale-navbar-abort-controller branch March 3, 2026 15:40
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.

2 participants