DEV Community

Discussion on: Authentication with React.js

Collapse
 
dmikester1 profile image
Mike Dodge

In AuthContext.js this bit is causing an error for me:
const setAuthData = (data) => {
setAuth({data: data});
};

It is saying Argument types do not match parameters. So I added loading: false to the object passed in to setAuth and the error went away.