Skip to content

Bug: Renders indefinetly when using a callback function #58

@2Up1Down

Description

@2Up1Down

When using the useGeolocation hook it renders indefinitely when using the optional callback function. See the example below:
https://codesandbox.io/s/nextjs-geolocation-b3defn?file=/pages/react-hook-geolocation.js

image

When the optional callback function is set to null its working fine.
image

Is this an expected behaviour?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions