@peable/services
Advanced tools
Comparing version 0.0.10 to 0.0.11
@@ -12,3 +12,3 @@ interface SessionData { | ||
session: SessionData | null; | ||
isLoading: boolean; | ||
status: "loading" | "loaded"; | ||
error: string | null; | ||
@@ -15,0 +15,0 @@ }; |
@@ -5,3 +5,3 @@ import { useState, useEffect } from "react"; | ||
const [session, setSession] = useState(null); | ||
const [isLoading, setIsLoading] = useState(true); | ||
const [status, setStatus] = useState("loading"); | ||
const [error, setError] = useState(null); | ||
@@ -35,3 +35,3 @@ useEffect(() => { | ||
finally { | ||
setIsLoading(false); | ||
setStatus("loading"); | ||
} | ||
@@ -41,4 +41,4 @@ }; | ||
}, []); | ||
return { session, isLoading, error }; | ||
return { session, status, error }; | ||
}; | ||
export default usePeableSession; |
{ | ||
"name": "@peable/services", | ||
"version": "0.0.10", | ||
"version": "0.0.11", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3577