File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -92,13 +92,13 @@ const settingToManipulator = (setting: ManipulatorSettings) => {
92
92
93
93
export function useInteractorStyleManipulatorSettings (
94
94
getStyle : ( ) => vtkInteractorStyle ,
95
- isExternalStyle : boolean ,
95
+ isExternalStyle : ( ) => boolean ,
96
96
settings : ManipulatorSettings [ ]
97
97
) {
98
98
useComparableEffect (
99
99
( ) => {
100
100
// Assumes external styles are externally controlled
101
- if ( isExternalStyle ) return ;
101
+ if ( isExternalStyle ( ) ) return ;
102
102
if ( ! getStyle ( ) . isA ( 'vtkInteractorStyleManipulator' ) ) return ;
103
103
104
104
const style = getStyle ( ) as vtkInteractorStyleManipulator ;
@@ -143,7 +143,7 @@ export function useInteractorStyle(
143
143
) ;
144
144
145
145
const externalStyleRef = useRef < vtkInteractorStyle | null > ( null ) ;
146
- const isExternalStyle = ! ! externalStyleRef . current ;
146
+ const isExternalStyle = useCallback ( ( ) => ! ! externalStyleRef . current , [ ] ) ;
147
147
148
148
const getStyle = useCallback ( ( ) => {
149
149
return externalStyleRef . current ?? getInternalStyle ( ) ;
You can’t perform that action at this time.
0 commit comments