diff --git a/src/Camera.tsx b/src/Camera.tsx index 98a67e3..723fc6e 100644 --- a/src/Camera.tsx +++ b/src/Camera.tsx @@ -26,7 +26,7 @@ export const Camera = forwardRef(function Camera( (data: Barcode[]): void => { callback(data); }, - [options] + [options, callback] ); const frameProcessor: ReadonlyFrameProcessor = useFrameProcessor( (frame: Frame) => { @@ -35,7 +35,7 @@ export const Camera = forwardRef(function Camera( // eslint-disable-next-line react-hooks/rules-of-hooks useWorklets(data); }, - [] + [useWorklets] ); return ( <>