@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.cjs
CHANGED
|
@@ -10066,7 +10066,6 @@ function useDataLoadEffect(deps) {
|
|
|
10066
10066
|
]);
|
|
10067
10067
|
react.useEffect(() => {
|
|
10068
10068
|
if (authenticated || state.providers.length > 0) return;
|
|
10069
|
-
if (state.activeCredentialId) return;
|
|
10070
10069
|
let cancelled = false;
|
|
10071
10070
|
const loadProviders = async () => {
|
|
10072
10071
|
try {
|
|
@@ -10089,7 +10088,7 @@ function useDataLoadEffect(deps) {
|
|
|
10089
10088
|
return () => {
|
|
10090
10089
|
cancelled = true;
|
|
10091
10090
|
};
|
|
10092
|
-
}, [authenticated, state.providers.length,
|
|
10091
|
+
}, [authenticated, state.providers.length, apiBaseUrl]);
|
|
10093
10092
|
react.useEffect(() => {
|
|
10094
10093
|
if (state.accounts.length > 0 && state.activeCredentialId && !state.loadingData && !state.transfer && authenticated && Date.now() - lastAccountFetchRef.current > 15e3) {
|
|
10095
10094
|
lastAccountFetchRef.current = Date.now();
|