title: Can't find the way to useSelector from redux-toolkit within event handler and pass params to it
body: <p>There is an event handler for click and when it triggered i want to pull specific data from redux using selector where all logic many-to-many is implemented. I need to pass id to it in order to receive its individual data. Based on rules of the react the hooks can be called in function that is neither a React function component nor a custom React Hook function.</p>
  <p>So what is the way to solve my problem ?</p>
  <pre class="lang-js prettyprint-override"><code>const handleMediaItemClick = (media: any): void =&gt; {
      // For example i check media type and use this selector to pull redux data by id
      const data = useSelector(playlistWithMediaSelector(imedia.id));
  };
  </code></pre>