diff --git a/components/react/lib/Particles.tsx b/components/react/lib/Particles.tsx index fce7e83..2f1bed9 100644 --- a/components/react/lib/Particles.tsx +++ b/components/react/lib/Particles.tsx @@ -12,16 +12,17 @@ const Particles: FC = (props) => { .load({ id, url: props.url, options: props.options }) .then((c) => { container = c; - props.particlesLoaded?.(c); }); return () => { container?.destroy(); }; - }, [id, props, props.url, props.options]); + }, [id, props.url, props.options]); + + const { id: _ignored, particlesLoaded, options, url, ...rest } = props; - return
; + return
; }; export default Particles;