User.get() not working

This function had been working just fine for months but recently after removing the edge browser metamask extension and redownloading from the google chrome store it doesn’t seem to work…

    React.useEffect(() => {
        
        const fetchData = async () => {
                if (!user) return null;
                setUserName(user.get('username'))
                setEth(user.get('ethAddress'))
            }

        fetchData()
})

I reconnected the same wallet address too btw

Using React.useEffect, are you using this in vanillaJS ?
You can also add user to the dependencies of the useEffect because if the project isn’t initialized, user is null at first.

Nope, Reactjs… I tried that too no luck

Are you re-authenticating (signing the message) the user/wallet with Moralis.authenticate / authenticate?

And using a useEffect like

React.useEffect(() => {
    console.log('user', user);
}, [user]);

Can you try another browser with MetaMask? Also the Edge store has MetaMask.

Yep… Metamask also says ‘Connected’, I originally had the Edge store version but switched yesterday because it didn’t have the latest version (10.17.0).

So this issue happened as soon as you installed the different version of MetaMask? Try clearing your browser’s cache and localStorage for your app (browser dev tools > Application tab).

Did you try another browser?