fix: debug

This commit is contained in:
Derrick Hammer 2023-10-12 12:01:46 -04:00
parent 9c876c834a
commit ba38e6be70
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 3 additions and 1 deletions

View File

@ -125,7 +125,9 @@ const LumeProvider = ({ children }) => {
loginComplete().then(() => isMounted.current && setIsLoggedIn(true));
init().then(() => isMounted.current && setReady(true));
const subDone = networkRegistry.subscribeToUpdates(fetchAndUpdateNetworks);
const subDone = networkRegistry.subscribeToUpdates(() => {
console.log("subscribeToUpdates triggered");
});
return () => {
isMounted.current = false; // Track component unmounting