Skip to content

Conversation

@bytrangle
Copy link
Contributor

Description

The getCollectionData only requires two parameters, as shown in this README.

However, the typing makes it look like it requires a third parameter, collectionView, which is in fact optional. If users din't pass collectionView to the function, Typescript will complain.

Notion Test Page ID

Just try passing these two ids to getCollectionData, and the response is successful.

const collectionId = '2d8aec23-8281-4a94-9090-caaf823dd21a'
const collectionViewId = 'ab639a5a-853e-45e1-9ef7-133b486c0acf'

@vercel
Copy link

vercel bot commented Jul 6, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
react-notion-x ✅ Ready (Inspect) Visit Preview Jul 6, 2022 at 5:02AM (UTC)
react-notion-x-minimal-demo ✅ Ready (Inspect) Visit Preview Jul 6, 2022 at 5:02AM (UTC)

@tvp100
Copy link

tvp100 commented Jun 20, 2025

I was also confused with it, cloud it be fixed?

@transitive-bullshit transitive-bullshit merged commit 0a0a9c6 into NotionX:master Sep 18, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants