react-notion-x
react-notion-x copied to clipboard
Collection Views not showing when inside a toggle
Example page of the issue: a899b98b7cdc424585e5ddebbdae60cc
I tried to get to the bottom of this. I couldn't figure out a fix but this is what I found.
The getPageRaw function for calling the loadPageChunk endpoint is not returning collection data from Notion when a collection is inside a toggle. But when it is outside it does contain the collection data.
Viewing how Notion works with this. It looks like Notion makes a second call to the loadPageChunk after the page loads. This call does return the collection data that is needed. Oddly enough the second call uses the exact same parameters as the first.
Sometimes Notion doesn't make the call till the user opens the toggle and then the table dynamically loads.
Not sure how we should handle this.