@swype-org/react-sdk 0.2.23 → 0.2.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10063,7 +10063,6 @@ function useDataLoadEffect(deps) {
|
|
|
10063
10063
|
]);
|
|
10064
10064
|
useEffect(() => {
|
|
10065
10065
|
if (authenticated || state.providers.length > 0) return;
|
|
10066
|
-
if (state.activeCredentialId) return;
|
|
10067
10066
|
let cancelled = false;
|
|
10068
10067
|
const loadProviders = async () => {
|
|
10069
10068
|
try {
|
|
@@ -10086,7 +10085,7 @@ function useDataLoadEffect(deps) {
|
|
|
10086
10085
|
return () => {
|
|
10087
10086
|
cancelled = true;
|
|
10088
10087
|
};
|
|
10089
|
-
}, [authenticated, state.providers.length,
|
|
10088
|
+
}, [authenticated, state.providers.length, apiBaseUrl]);
|
|
10090
10089
|
useEffect(() => {
|
|
10091
10090
|
if (state.accounts.length > 0 && state.activeCredentialId && !state.loadingData && !state.transfer && authenticated && Date.now() - lastAccountFetchRef.current > 15e3) {
|
|
10092
10091
|
lastAccountFetchRef.current = Date.now();
|