I have some code coming back from my database and i want to redirect in the .then - when and if there is a res , but when i put the history.push in the .then- it doesn\'t render