Skip to content

Conversation

@takaokouji
Copy link

This PR fixes the React PropType warning 'Invalid prop messages.mesh.sensorValue of type object supplied to Blocks, expected string' that occurs when opening the connection modal.

The warning is caused by the format-message library transforming message strings into objects with a 'message' property and a 'format' function. Updating the PropTypes to allow objects resolves this issue.

takaokouji and others added 3 commits January 20, 2026 15:10
- Added src/lib/log-suppression.js to filter out specific console warnings.
- Imported suppression logic in main playground entry point and library index.
- Warnings suppressed include:
  - Object freezing is not supported by Opal
  - Canvas2D willReadFrequently attribute
  - React defaultProps deprecation (future-proofing)
  - React unknown prop recognition
  - Deprecated React lifecycle methods
  - findDOMNode deprecation
  - AudioContext user gesture requirement
  - apple-mobile-web-app-capable meta tag deprecation

🤖 Generated with [Gemini Code](https://gemini.google.com/code)

Co-Authored-By: Gemini <noreply@google.com>
- Improve log-suppression to check all console arguments
- Add GenerateSW warning to ignoredWarnings
- Add mobile-web-app-capable meta tag to address deprecation warning
- Updated 'messages' PropType to allow values that are either strings or objects
- This fixes the React PropType warning when opening the connection modal,
  where format-message transforms message strings into objects.

Co-Authored-By: Gemini <noreply@google.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.

2 participants