#Loading More Posts

2 messages · Page 1 of 1 (latest)

teal vale
#

I have built a headless wordpress site in next js, and have used this piece of code https://dev.to/franadev/pagination-in-headless-wordpress-with-wpgraphql-apollo-nextjs-3n3e to build a lazy load system, I can see that its pulling through the data in the network tab, but in the front end nothing is happening and the button just sits on loading, I had to do some edits to this file to get it working with an apollo provider tag etc. https://pastebin.com/rUeXr2DS is the component ive made, is there something im missing to get that content to show?

DEV Community

In this article, I will discuss how WPGraphQL does cursor-based pagination in headless WordPress...

hardy axleBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)