# Updating Genre and Platform UseQuery Initial Data after Implementing Infinite Scroll

**URL:** <https://forum.codewithmosh.com/t/updating-genre-and-platform-usequery-initial-data-after-implementing-infinite-scroll/21914>\
**Category:** React\
**Created:** [August 7, 2023, 9:31am UTC](https://forum.codewithmosh.com/t/updating-genre-and-platform-usequery-initial-data-after-implementing-infinite-scroll/21914 "2023-08-07T09:31:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vitzal](https://avatars.discourse-cdn.com/v4/letter/v/9fc348/32.png) [@Vitzal](https://forum.codewithmosh.com/u/Vitzal)\
**Post date:** [August 7, 2023, 9:31am UTC](https://forum.codewithmosh.com/t/updating-genre-and-platform-usequery-initial-data-after-implementing-infinite-scroll/21914/1 "2023-08-07T09:31:21Z")

</div>

After implementing the InfiniteScroll in Mosh’s React Part 2 Course, don’t forget to change the initial data in the useQuery hooks for useGenre.ts and usePlatform.ts to include the next variable, i.e.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/7/7914319dc5fee3c4bd40b4a4cfb59c5fa63a7c71.png)

I think Mosh forgot to mention this and it stumped me for about an hour );.

---

<div class="post-metadata">

**Author:** ![Vitzal](https://avatars.discourse-cdn.com/v4/letter/v/9fc348/32.png) [@Vitzal](https://forum.codewithmosh.com/u/Vitzal)\
**Post date:** [August 7, 2023, 9:39am UTC](https://forum.codewithmosh.com/t/updating-genre-and-platform-usequery-initial-data-after-implementing-infinite-scroll/21914/2 "2023-08-07T09:39:50Z")

</div>

I just realised that he resolves this error in the Creating Lookup Hooks section of the course lol, but I’ll leave this here just incase it stumps people earlier.
