diff --git a/index.js b/index.js index 2459b58..32bc686 100644 --- a/index.js +++ b/index.js @@ -5,7 +5,7 @@ import { useState, useEffect } from "react"; const useGeoLocation = (options = {}) => { const [country, setCountry] = useState(options.country); const [error, setError] = useState(false); - const [isLoading, setIsLoading] = useState(true); + const [isLoading, setIsLoading] = useState(false); const api = options.api || "https://api.country.is"; useEffect(() => { diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..779bc8f --- /dev/null +++ b/package-lock.json @@ -0,0 +1,13 @@ +{ + "name": "react-ipgeolocation", + "version": "1.4.0", + "lockfileVersion": 2, + "requires": true, + "packages": { + "": { + "name": "react-ipgeolocation", + "version": "1.4.0", + "license": "ISC" + } + } +}