diff --git a/README.md b/README.md index 7409736..cf20909 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Additional features implemented include: ## Changelog: -### Version 0.1, 01/30/2022 +### Version 0, 01/30/2022 First project build! diff --git a/src/features/posts/Feed.js b/src/features/posts/Feed.js index 1ad0345..ba093b9 100644 --- a/src/features/posts/Feed.js +++ b/src/features/posts/Feed.js @@ -10,6 +10,9 @@ export default function Feed() { const [endpoints, setEndpoints] = useState(null); // Expects to receive an array of endpoints from which to fetch the posts const [data, setData] = useState(null); // Receives data from getPosts and them maps it onto Post components const [feed, setFeed] = useState(null); // Expects to receive an array of Post components mapped with data from fetchBySub + + const [feedPage, setFeedPage] = useState(['']); // Expects an array of arrays (pages of feed posts) + const [currentPage, setCurrentPage] = useState(0); const dispatch = useDispatch(); // const posts = useSelector(selectPosts);