File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ const getNavigationLinkPages = pMemoize(
24
24
navigationLinkPageIds ,
25
25
async ( navigationLinkPageId ) =>
26
26
notion . getPage ( navigationLinkPageId , {
27
+ chunkLimit : 1 ,
27
28
fetchMissingBlocks : false ,
28
29
fetchCollections : false ,
29
30
signFileUrls : false
@@ -47,12 +48,17 @@ export async function getPage(pageId: string): Promise<ExtendedRecordMap> {
47
48
// the page title, slug, etc.
48
49
const navigationLinkRecordMaps = await getNavigationLinkPages ( )
49
50
51
+ const preLength = Object . keys ( recordMap . block ) . length
50
52
if ( navigationLinkRecordMaps ?. length ) {
51
53
recordMap = navigationLinkRecordMaps . reduce (
52
54
( map , navigationLinkRecordMap ) =>
53
55
mergeRecordMaps ( map , navigationLinkRecordMap ) ,
54
56
recordMap
55
57
)
58
+
59
+ const postLength = Object . keys ( recordMap . block ) . length
60
+
61
+ console . log ( 'BLOCKS' , { preLength, postLength } )
56
62
}
57
63
}
58
64
You can’t perform that action at this time.
0 commit comments