Skip to content

Conversation

@mfazekas
Copy link

@mfazekas mfazekas commented Feb 8, 2026

Summary

Fixes #416valueStream throws missingData when a string property is set to "", permanently killing the listener.

The ObjC++ bridge in RiveViewModelInstanceData.mm was filtering out empty strings with if (!data.stringValue.empty()), leaving _stringValue as nil. The Swift layer then interpreted nil as missing data and terminated the stream.

The fix removes the empty() guard for string/enumType types so empty strings are correctly bridged as @"".

Test plan

  • Added test_value_withEmptyStringProperty_returnsEmptyString — one-shot value request returns ""
  • Added test_valueStream_withEmptyStringProperty_yieldsEmptyString — stream yields "" without throwing
  • All existing ViewModelInstanceTests pass (36/36)

…ngData

Closes rive-app#416

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <[email protected]>
Co-Authored-By: Happy <[email protected]>
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.

valueStream throws missingData when string property is set to empty string

1 participant