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

sql - Time in datatime field -

javascript - How to split the success output from an Ajax post? -

java - sharing object across different classes -