You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rename Spline Event listeners to onSplineXXX to avoid conflicts with native mouse/keyboard events #192
Before
exportdefaultfunctionApp(){functiononMouseDown(e){if(e.target.name==='Cube'){console.log('I have been clicked!');}}return(<Splinescene="https://prod.spline.design/6Wq1Q7YGyM-iab9i/scene.splinecode"onMouseDown={onMouseDown}/>);}
After
exportdefaultfunctionApp(){functiononSplineMouseDown(e){if(e.target.name==='Cube'){console.log('I have been clicked!');}}return(<Splinescene="https://prod.spline.design/6Wq1Q7YGyM-iab9i/scene.splinecode"onSplineMouseDown={onSplineMouseDown}/>);}
Allow usage of ErrorBoundary with Spline internal errors #193
Code example
import{ErrorBoundary}from"react-error-boundary";<ErrorBoundaryfallback={<div>Something went wrong</div>}><Splinescene="https://prod.spline.design/6Wq1Q7YGyM-iab9i/scene.splinecode"/></ErrorBoundary>