First of all, thanks for your efforts and sharing your knowledge with us 😊❤️, Could you create another video about how to use strapi graphql instead of REST api with the same react-query filtering and infinite scroll functionality ☺️☺️
I will think about it, the problem with that is that then I would have to explain what is GraphQL how to use it etc. Maybe I make a mini series about Strapi and GraphQL and include that video there. But anyway thanks for watching and thanks for the suggestion 😀
@@WatchandLearnTutorials Yes Please! I came to ask the same question about strapi graphql and useinfinitequery. I was able to get graphql and react-query working with the info from your react-query filtering video, but I'm stuck with infinite scroll.
@@alecl6784 Hmmm, I would guess it would be even easier with GraphQL because with it you can define your schema so you would be getting correctly formatted data right away. Also keep in mind that I'm not using Strapi in this video, but October CMS, so you can't follow this exactly.
my problem is related to pages. i have a listing page which use getserversideprops function and i click on one of the list i go to detail page which is also use getderversideprops function. my listing page has a scroll function which is update list based on scroll. when i scroll 5 to 6 time and click one of the list and hit browser back button i lost my list so how i maintain my listing data as it is that i'm not lost. any one help me with this !!
Hi, how can i replace the october code? I'm trying but I cant solve this, and its so painful. Btw i wanna get items from mongodb with nextjs, and load them with infinity scroll, filters, and sorting. But I cant rewrite that code you did with october xd. Pls help me :'c
The code would be a little bit different depending on your data source. When using CMS like October you usually get the data that you need to make infinite scroll, like total number of pages, how many items you get per page, on which page you are currently, what is the next page, are you on first or last page etc. Now I don't know how this works for MongoDB I never used it so I don't know how to help you with that. Maybe one of the results from this Google search can help you. www.google.com/search?q=mongodb+infinite+scroll&oq=mongodb+infinite+scroll&aqs=chrome..69i57.5112j0j1&sourceid=chrome&ie=UTF-8
Can with do it with reddit API? Because in reddit API pagination working on after before method in URL please suggest how to do infinite scroll with reddit API.
First of all, thanks for your efforts and sharing your knowledge with us 😊❤️,
Could you create another video about how to use strapi graphql instead of REST api with the same react-query filtering and infinite scroll functionality ☺️☺️
I will think about it, the problem with that is that then I would have to explain what is GraphQL how to use it etc. Maybe I make a mini series about Strapi and GraphQL and include that video there. But anyway thanks for watching and thanks for the suggestion 😀
@@WatchandLearnTutorials Yes Please! I came to ask the same question about strapi graphql and useinfinitequery. I was able to get graphql and react-query working with the info from your react-query filtering video, but I'm stuck with infinite scroll.
@@alecl6784 Hmmm, I would guess it would be even easier with GraphQL because with it you can define your schema so you would be getting correctly formatted data right away. Also keep in mind that I'm not using Strapi in this video, but October CMS, so you can't follow this exactly.
Thanks you so much, it helped me a lot!
Glad I could help 😀
my problem is related to pages. i have a listing page which use getserversideprops function and i click on one of the list i go to detail page which is also use getderversideprops function. my listing page has a scroll function which is update list based on scroll. when i scroll 5 to 6 time and click one of the list and hit browser back button i lost my list so how i maintain my listing data as it is that i'm not lost.
any one help me with this !!
Hi, how can i replace the october code? I'm trying but I cant solve this, and its so painful. Btw i wanna get items from mongodb with nextjs, and load them with infinity scroll, filters, and sorting. But I cant rewrite that code you did with october xd. Pls help me :'c
The code would be a little bit different depending on your data source. When using CMS like October you usually get the data that you need to make infinite scroll, like total number of pages, how many items you get per page, on which page you are currently, what is the next page, are you on first or last page etc. Now I don't know how this works for MongoDB I never used it so I don't know how to help you with that. Maybe one of the results from this Google search can help you. www.google.com/search?q=mongodb+infinite+scroll&oq=mongodb+infinite+scroll&aqs=chrome..69i57.5112j0j1&sourceid=chrome&ie=UTF-8
Can with do it with reddit API? Because in reddit API pagination working on after before method in URL please suggest how to do infinite scroll with reddit API.
Hi, how do I use pagination with strapi and react query? Since strapi does not provide pagination
Strapi does provide pagination, and I have video about it: ua-cam.com/video/ZG8VBfBDQZQ/v-deo.html
The code link is broken
Works fine. Try this: gist.github.com/ivandoric/2f770c7b8c165d76a431e34c98312d76
any way we could use post request