Redux-geo documentation
No other dependencies needed besides redux! This package will allow you to periodically update your redux store with user gps information.
Setting up your store
; ;
Example of use
;store.subscribe; ; if !unsubscribe else
Relevant information
This package may cause browsers like Firefox to repeatedly ask for user location, if the user does not give permanent access to geolocation. The package may execute promisified geolocation action after cancelling, if such action has already been scheduled. The package also persists user denial of api until page reload I'm still very much a beginner, so use this with caution.
Update timer
The wait cycle works like this:
- Wait for geo api to respond
- Wait for set amount of ms
- Repeat until cycles run out / unsubscribed / denied
For more information, see the test project right in this repo.