use-position
use-position copied to clipboard
Memoize hook output value
Avoid re-rendering of components that use the hook.
Why do we need that? we always destruct output of usePosition ex:
const {
latitude,
longitude,
speed,
timestamp,
accuracy,
error,
} = usePosition();