Closed byCedric closed 3 years ago
Fixes #2
This uses a workaround with useRef data to access it within a timer (setInterval). This allows us to access the (previous) location data without reinitializing the timer.
useRef
setInterval
Awesome! You can preview the PR here.
Linked issue
Fixes #2
Additional context
This uses a workaround with
useRef
data to access it within a timer (setInterval
). This allows us to access the (previous) location data without reinitializing the timer.