solid-three icon indicating copy to clipboard operation
solid-three copied to clipboard

Validate props and throw helpful errors

Open bigmistqke opened this issue 2 months ago • 1 comments

@vorth was having issues with an unsupported event from react-three-fiber (onPointerOver). This caused an error with a cleanup function. We should handle these types of errors more gracefully.

bigmistqke avatar Nov 01 '25 13:11 bigmistqke

Specifically, inside createEvents, the addEventListener function simply returns undefined if type doesn't match any known value. It should throw an error with "unknown event type" or similar.

vorth avatar Nov 01 '25 14:11 vorth