Skip to content

Conversation

mrnix
Copy link

@mrnix mrnix commented Jun 22, 2021

Avoid re-rendering of components that use the hook.

Avoid re-rendering of components that use the hook.
@behnammodi
Copy link
Contributor

Why do we need that? we always destruct output of usePosition ex:

const {
  latitude,
  longitude,
  speed,
  timestamp,
  accuracy,
  error,
} = usePosition();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants