Skip to content

fix: gracefully handle empty arrays on poll preview label - #3897

Merged
isekovanic merged 1 commit into
developfrom
fix/gracefully-handle-empty-arrays-on-preview-label
Oct 27, 2026
Merged

isekovanic merged 1 commit into
developfrom
fix/gracefully-handle-empty-arrays-on-preview-label

Conversation

@isekovanic

@isekovanic isekovanic commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

🎯 Goal

This PR handles an unfortunate crash that was introduced with poll optimistic votes. Since we were not properly handling the case of having an empty array (as server-side this never happens but rather the entry is removed from the object) it would result in an uncaught error instead of just resolving gracefully.

πŸ›  Implementation details

Linear ticket: https://linear.app/stream/issue/REACT-1415/uncaught-error-when-removing-the-last-vote-in-a-poll

🎨 UI Changes

iOS
Before After
Android
Before After

πŸ§ͺ Testing

β˜‘οΈ Checklist

  • I have signed the Stream CLA (required)
  • PR targets the develop branch
  • Documentation is updated
  • New code is tested in main example apps, including all possible scenarios
    • SampleApp iOS and Android
    • Expo iOS and Android

@Stream-SDK-Bot

Copy link
Copy Markdown
Contributor

SDK Size

title develop branch diff status
js_bundle_size 2036 KB 2036 KB +19 B 🟒
ai_components_size 130 KB 130 KB 0 B 🟒

@isekovanic
isekovanic merged commit 768b06c into develop Oct 27, 2026
10 checks passed
@isekovanic
isekovanic deleted the fix/gracefully-handle-empty-arrays-on-preview-label branch October 27, 2026 17:52
@github-actions github-actions Bot mentioned this pull request Oct 27, 2026
6 tasks
@stream-ci-bot

Copy link
Copy Markdown
Contributor

πŸŽ‰ This PR is included in version 9.10.2 πŸŽ‰

The release is available on:

Your semantic-release bot πŸ“¦πŸš€

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants