We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91b296b commit ee2a467Copy full SHA for ee2a467
1 file changed
apps/hub/src/components/spline/useSplineBlockchain.ts
@@ -84,8 +84,8 @@ export function useSplineBlockchain({
84
variableNames = {},
85
onUpdate,
86
}: UseSplineBlockchainOptions) {
87
- const lastUpdateRef = useRef<number>(0);
88
- const animationFrameRef = useRef<number>();
+ const lastUpdateRef = useRef(0);
+ const animationFrameRef = useRef<ReturnType<typeof requestAnimationFrame> | null>(null);
89
90
// Merge variable names with defaults
91
const varNames = { ...DEFAULT_VARIABLE_NAMES, ...variableNames };
0 commit comments