title: TypeError: getState is not a function in redux when trying to pass token
body: <p>When I hit the button in a page to pass the search results + authentication token, I get the following error </p>
  
  <pre><code>TypeError: getState is not a function
  </code></pre>
  
  <p>I attached the image as it shows an exact trace of the error.</p>
  
  <p>How can I solve this ?</p>
  
  <p><a href="https://i.stack.imgur.com/HHknh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HHknh.png" alt="enter image description here"></a></p>