Skip to content

Commit 7012c66

Browse files
authored
fix: ensure useOnProgressChange responds to new offsetX and sizeReady instances
Passing new offsetX or sizeReady instances to useOnProgressChange hook would not cause useAnimatedReaction hook to re-run despite it using those values. Adding those two shared values as dependencies of the hook.
1 parent fec99d7 commit 7012c66

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/hooks/useOnProgressChange.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@ export function useOnProgressChange(
5353
}
5454
}
5555
},
56-
[loop, autoFillData, rawDataLength, onProgressChange, size]
56+
[loop, autoFillData, rawDataLength, onProgressChange, size, offsetX, sizeReady]
5757
);
5858
}

0 commit comments

Comments
 (0)