Skip to content

Add skip option to hook - #36

Open
cedarbaum wants to merge 1 commit into
trekhleb:masterfrom
cedarbaum:add_skip_option
Open

Add skip option to hook#36
cedarbaum wants to merge 1 commit into
trekhleb:masterfrom
cedarbaum:add_skip_option

Conversation

@cedarbaum

Copy link
Copy Markdown

Allow geolocation to be skipped with an optional parameter. This is useful for cases where lat/lon can optionally be retrieved by other means (e.g., geocoding) and there is no need to get current location:

  const {
    latitude,
    longitude,
    error,
  } = usePosition(watch, settings, otherLat && otherLon);

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.

1 participant