Next.js pages are still supported!
33 |{siteDescription}
12 | 13 | 14 | 23 |{siteDescription}
12 | 13 | 14 | 23 |Next.js pages are still supported!
33 |Error! {error.message}
; 72 | 73 | if (!data?.nodeByUri?.posts?.nodes.length) { 74 | returnNo posts have been published
; 75 | } 76 | 77 | const siteData = siteDataQuery?.data?.generalSettings || {}; 78 | const menuItems = headerMenuDataQuery?.data?.primaryMenuItems?.nodes || { 79 | nodes: [], 80 | }; 81 | const { title: siteTitle, description: siteDescription } = siteData; 82 | const { archiveType, name, posts } = data?.nodeByUri || {}; 83 | 84 | const loadMorePosts = async () => { 85 | await fetchMore({ 86 | variables: { 87 | first: BATCH_SIZE, 88 | after: posts.pageInfo.endCursor, 89 | uri: currentUri 90 | }, 91 | updateQuery: (prevResult, { fetchMoreResult }) => { 92 | if (!fetchMoreResult) return prevResult; 93 | 94 | return { 95 | nodeByUri: { 96 | ...fetchMoreResult.nodeByUri, 97 | posts: { 98 | ...fetchMoreResult.nodeByUri.posts, 99 | nodes: [ 100 | ...prevResult.nodeByUri.posts.nodes, 101 | ...fetchMoreResult.nodeByUri.posts.nodes, 102 | ], 103 | }, 104 | }, 105 | }; 106 | }, 107 | }); 108 | }; 109 | 110 | return ( 111 | <> 112 | 113 |No posts found.
132 | )} 133 | {posts.pageInfo.hasNextPage && ( 134 |52 | Learn more about Faust.js through tutorials, guides and reference 53 | in our documentation. 54 |
55 | 56 | 57 | 63 |Explore production ready Faust.js starter kits.
65 | 66 | 67 | 73 |75 | Deploy your Faust.js app to Headless Platform along with your 76 | WordPress instance. 77 |
78 | 79 | 80 | 86 |Visit us on GitHub to explore how you can contribute!
88 | 89 |94 | To get started on WP Engine's Platform please follow the docs here{" "} 95 | 100 | https://developers.wpengine.com/docs/atlas/getting-started/create-app/ 101 | 102 |
103 | 104 |106 | At WP Engine, we have a strong community built around headless 107 | WordPress to support you with your journey. 108 |
109 |Error! {error.message}
; 49 | 50 | if (!data?.page) { 51 | returnNo pages have been published
; 52 | } 53 | 54 | 55 | const siteData = siteDataQuery?.data?.generalSettings || {}; 56 | const menuItems = headerMenuDataQuery?.data?.primaryMenuItems?.nodes || { 57 | nodes: [], 58 | }; 59 | const { title: siteTitle, description: siteDescription } = siteData; 60 | const { title, content } = data?.page || {}; 61 | 62 | return ( 63 | <> 64 | 65 |