Refactor StoryProgressSegment to have better controlled animations

This commit is contained in:
Jamie Kyle 2024-08-13 15:19:34 -07:00 committed by GitHub
parent a973c27fd4
commit 74b90a5cdd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 171 additions and 147 deletions

View file

@ -2882,24 +2882,10 @@
},
{
"rule": "React-useRef",
"path": "ts/components/StoryViewer.tsx",
"line": " const progressBarRef = useRef<HTMLDivElement>(null);",
"path": "ts/components/StoryProgressSegment.tsx",
"line": " const onFinishRef = useRef(onFinish);",
"reasonCategory": "usageTrusted",
"updated": "2022-10-13T15:18:21.267Z"
},
{
"rule": "React-useRef",
"path": "ts/components/StoryViewer.tsx",
"line": " const animationRef = useRef<Animation | null>(null);",
"reasonCategory": "usageTrusted",
"updated": "2022-10-13T15:18:21.267Z"
},
{
"rule": "React-useRef",
"path": "ts/components/StoryViewer.tsx",
"line": " const onFinishRef = useRef<(() => void) | null>(null);",
"reasonCategory": "usageTrusted",
"updated": "2022-10-13T15:18:21.267Z"
"updated": "2024-08-13T20:48:09.226Z"
},
{
"rule": "React-useRef",