javascript - Cannot pass object to redux route -
i want pass object route, appears cannot with:
const cognitouser = new cognitouser({ username: data.username, pool: userpool }) cognitouser.authenticateuser(authdetails, { newpasswordrequired(userattribs) { ... dispatch(push({ pathname: '/auth/set-new-password', state: { cognitouser, userattribs } })) } })
i think not able pass cognitouser
because cannot serialized? how pass then?
uncaught error: failed execute 'pushstate' on 'history': storage object not cloned.
Comments
Post a Comment