title: how to get the value from redux store and display it using typescirpt and redux toolkit
body: <p>I am working on react typescript and redux toolkit project
  I have feteched api response using axios and assign  the response  to redux store ,but when tried to get the value the from the store it information is not display</p>
  <p><strong>User.tsx</strong></p>
  <pre><code>import React,{useState,useEffect} from &quot;react&quot;;
  import { UserService } from &quot;../service/UserService&quot;;
  import {useAppDispatch,useAppSelector} from '../redux/hooks'
  import {DeleteCard, Getall} from '../redux/ActionSlice'
  import {AiOutlineStar} from 'react-icons/ai'
  import {IUser} from &quot;../model/User&quot;;
  import { AddFavourite } from &quot;../redux/FavouriteSlice&quot;;
  import { toast } from 'react-toastify';
  import {useNavigate} from 'react-router-dom'
  interface ISTATE{
      loading:boolean,
      users:IUser[],
      errorMsg:string,
  }
  
  const User:React.FC=()=&gt;{
    const product=useAppSelector(state=&gt;state.app.action)
    const navigate=useNavigate()
    const dispatch=useAppDispatch()
    const[state,setState]=useState&lt;ISTATE&gt;({
      loading:false,
      users:[] as IUser[],
      errorMsg:''
    })
  
    useEffect(()=&gt;{
      UserService.getAllUsers().then(res=&gt;dispatch(Getall(res.data.products))).catch(err=&gt;setState({...state,loading:false,errorMsg:err}))
      setState({...state,loading:false,users:product}) 
      console.log(state.users)
    },[])
   
    const AddFav=(product:IUser)=&gt;{
      dispatch(AddFavourite(product))
    }
      return(
          &lt;div className=&quot;flex flex-wrap space-x-4  space-y-4 justify-center items-center&quot;&gt;
           {state.users.length &gt;0 &amp;&amp; state.users.map((product,i)=&gt;(
              &lt;div key={i} className=&quot;flex flex-col items-center relative bg-white rounded-md shadow-lg shadow-zinc-400&quot;&gt;
                  &lt;img src={product.avatar} alt=&quot;image&quot; className=&quot;h-[300px] w-[300px] p-2 mt-6 object-contain &quot;/&gt;
                  &lt;h1 className=&quot;text-md m-2 w-full text-center font-medium&quot;&gt;{product.name}&lt;/h1&gt; 
                  &lt;h1&gt;{product.developerEmail}&lt;/h1&gt;
                  &lt;button onClick={()=&gt;AddFav(product)} className=&quot;absolute top-0 right-0 p-2&quot;&gt;&lt;AiOutlineStar className=&quot;text-xl&quot;/&gt;&lt;/button&gt;
                  &lt;button onClick={()=&gt;{dispatch(DeleteCard(product._id))}} className=&quot;bg-red-500 px-4 py-2 mt-2 rounded-md mb-2 text-white shadow-lg&quot;&gt;Delete&lt;/button&gt;
                  &lt;button onClick={()=&gt;navigate(`/details/${product._id}`)}&gt;More details&lt;/button&gt;
              &lt;/div&gt;
           ))}
          &lt;/div&gt;
      ) 
  
  }
  export default User
  </code></pre>
  <p><strong>Action Slice</strong></p>
  <pre><code>import{createSlice,PayloadAction} from '@reduxjs/toolkit'
  import { IUser } from '../model/User'
  import { RootState } from './store'
  
  const initialState:IUser[]=[]
  
  const ActionSlice=createSlice({
      name:'action',
      initialState,
      reducers:{
          Getall:(state,action:PayloadAction&lt;IUser&gt;)=&gt;{
              state.push(action.payload)
          },
          DeleteCard:(state,action:PayloadAction&lt;string&gt;)=&gt;{
             const index = state.findIndex((todo) =&gt; todo._id === action.payload);
              state.splice(index, 1);
           },
  
  
           
      }
  
  })
  export const {DeleteCard,Getall}=ActionSlice.actions;
  export const getProductList=(state:RootState)=&gt;state.app.action
  export default ActionSlice.reducer
  </code></pre>
  <p><strong>IUser interface</strong></p>
  <pre><code>export interface IUser{
      _id:string;
      avatar:string;
      name:string;
      category:string;
      description:string;
      developerEmail:string;
      price:number,
      
  }
  </code></pre>
  <p>I have tried googling staff but would able to get solution to display the thing,it would be great if you guys help me out to figure out the solution</p>
  <p><strong>thank you in advance</strong></p>