@@ -18,19 +18,19 @@ export function ShaderGradientStateless(passedProps: GradientT): JSX.Element {
1818 onCameraUpdate = { ( updates ) => {
1919 const { cAzimuthAngle, cPolarAngle, cDistance, cameraZoom } = updates
2020 // defer writing to the URL store; useQueryState itself handles URL push
21- if ( typeof window !== 'undefined' ) {
22- // Lazy import to avoid coupling at build time; same store contract
23- const { useQueryStore } = require ( './store' )
24- const next : any = { }
25- if ( typeof cAzimuthAngle !== 'undefined' )
26- next . cAzimuthAngle = cAzimuthAngle
27- if ( typeof cPolarAngle !== 'undefined' ) next . cPolarAngle = cPolarAngle
28- if ( typeof cDistance !== 'undefined' ) next . cDistance = cDistance
29- if ( typeof cameraZoom !== 'undefined' ) next . cameraZoom = cameraZoom
30- if ( Object . keys ( next ) . length ) {
31- useQueryStore . setState ( next )
32- }
33- }
21+ // if (typeof window !== 'undefined') {
22+ // // Lazy import to avoid coupling at build time; same store contract
23+ // const { useQueryStore } = require('./store')
24+ // const next: any = {}
25+ // if (typeof cAzimuthAngle !== 'undefined')
26+ // next.cAzimuthAngle = cAzimuthAngle
27+ // if (typeof cPolarAngle !== 'undefined') next.cPolarAngle = cPolarAngle
28+ // if (typeof cDistance !== 'undefined') next.cDistance = cDistance
29+ // if (typeof cameraZoom !== 'undefined') next.cameraZoom = cameraZoom
30+ // if (Object.keys(next).length) {
31+ // useQueryStore.setState(next)
32+ // }
33+ // }
3434 } }
3535 />
3636 )
0 commit comments