mirror of
https://github.com/immich-app/immich.git
synced 2026-05-21 23:26:31 -04:00
0651612d46
The timer hook preserved the values of the original local variables, which caused issues when hiding controls for videos. The callback can be changed so that it always sees the latest value with useRef, and it can be simplified significantly using a function rather than state class.