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

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -