File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -284,7 +284,7 @@ import { useTick } from '@pixi/react'
284
284
const MyComponent = () => {
285
285
const [isEnabled , setIsEnabled ] = useState (false )
286
286
287
- useTick (() => console .log (' This will be logged on every tick as long as `isEnabled` is `true`' ), )
287
+ useTick (() => console .log (' This will be logged on every tick as long as `isEnabled` is `true`' ), isEnabled )
288
288
289
289
return (
290
290
< sprite onClick= {setIsEnabled (previousState => ! previousState)}>
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ export interface UseTickOptions<T>
9
9
context ?: T
10
10
11
11
/** @description Whether this callback is currently enabled. */
12
- isEnabled ?: true ,
12
+ isEnabled ?: boolean ,
13
13
14
14
/** @description The priority of this callback compared to other callbacks on the ticker. */
15
15
priority ?: number
You can’t perform that action at this time.
0 commit comments