We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e9a8d4 commit c48cd47Copy full SHA for c48cd47
src/effects/Glitch.tsx
@@ -25,7 +25,7 @@ export const Glitch = forwardRef<GlitchEffect, GlitchProps>(function Glitch(
25
const chromaticAberrationOffset = useVector2(props, 'chromaticAberrationOffset')
26
const effect = useMemo(
27
() => new GlitchEffect({ ...props, delay, duration, strength, chromaticAberrationOffset }),
28
- [delay, duration, props, strength]
+ [delay, duration, props, strength, chromaticAberrationOffset]
29
)
30
useLayoutEffect(() => {
31
effect.mode = active ? props.mode || GlitchMode.SPORADIC : GlitchMode.DISABLED
0 commit comments