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

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -