yuvrajkarna2717/react-hook-granth

[Feature]: Add useGeolocation hook

Aberta

#9 aberto em 6 de dez. de 2025

 (0 comentário) (0 reação) (0 responsável)JavaScript (1 fork)auto 404
enhancementgood first issuehelp wanted

Métricas do repositório

Stars
 (3 estrelas)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

Description: Create a hook for accessing browser geolocation API with proper error handling and loading states.

Requirements:

  • Get current position
  • Watch position changes
  • Handle permissions and errors
  • Loading states

API Proposal:

const { position, error, loading, getCurrentPosition } = useGeolocation();

Guia do colaborador