Skip to content

fix(vibesuite): prevent logged-in crash when learnedSkills is not an array The progress-hydration effect iterated accountData.learnedSkills with for...of, guarded only by ?? [], which catches null/undefined but not other non-array shapes returned by /api/users/me. A non-iterable value threw "is not iterable" during render, blanking the whole page for logged-in users while guests (accountData null) were unaffected. Guard with Array.isArray so only real arrays are hydrated. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>#160

Merged
MaryWylde merged 1 commit into
devfrom
fix/vibesuite-logged-in-crash
Jul 13, 2026

Conversation

@MaryWylde

Copy link
Copy Markdown
Contributor

Description

Briefly describe the changes.

🔗 Related Issue

Closes #123 or relates to #456

*(Optional: You can also open a pull request directly from an issue — GitHub will auto-link it.)

✅ Checklist

  • My code follows the project's coding style
  • I have linked the relevant issue in the PR description
  • I have manually tested the changes
  • All CI checks have passed

…array

The progress-hydration effect iterated accountData.learnedSkills with
for...of, guarded only by `?? []`, which catches null/undefined but not
other non-array shapes returned by /api/users/me. A non-iterable value
threw "is not iterable" during render, blanking the whole page for
logged-in users while guests (accountData null) were unaffected. Guard
with Array.isArray so only real arrays are hydrated.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@MaryWylde MaryWylde merged commit d964877 into dev Jul 13, 2026
2 checks passed
MaryWylde added a commit that referenced this pull request Jul 13, 2026
Merge pull request #160 from keepsimpleio/fix/vibesuite-logged-in-crash

fix(vibesuite): prevent logged-in crash when learnedSkills is not an array

The progress-hydration effect iterated accountData.learnedSkills with
for...of, guarded only by `?? []`, which catches null/undefined but not
other non-array shapes returned by /api/users/me. A non-iterable value
threw "is not iterable" during render, blanking the whole page for
logged-in users while guests (accountData null) were unaffected. Guard
with Array.isArray so only real arrays are hydrated.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
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.

1 participant