Skip to content

Commit

Permalink
fix(Glitch): conservative dispose
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyJasonBennett committed Jan 15, 2024
1 parent 220d2b5 commit dc609fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/effects/Glitch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const Glitch = forwardRef<GlitchEffect, GlitchProps>(function Glitch(
}, [active, effect, invalidate, props.mode])
useEffect(() => {
return () => {
effect.dispose()
effect.dispose?.()
}
}, [effect])
return <primitive ref={ref} object={effect} dispose={null} />
Expand Down

0 comments on commit dc609fc

Please sign in to comment.