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.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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 addedloading: false
to the object passed in tosetAuth
and the error went away.