const readersInfo = useSelector( (state:IRootState) => state.reader.readerinfo ); useEffect(() => { dispatch(getThisReaderInfoThunk()) }, [dispatch]);