Access to all route data in PageContext
See original GitHub issueDescription
Hello, I am making a page which links to all my MDX pages in my blog directory. I found that I can get all of this information via pageContext._pageFilesAll
, but obviously this is not a public/stable API due to the leading underscore.
Specifically I’m doing this pageContext._pageFilesAll.filter((f) => f.pageId.match(/^\/pages\/blog/))
And that gets me all the information I need to do what I want, but I wish I could do this in an official way, without a plugin.
Can this or similar access be made official? Or is there already an official way to do this?
Thank you!
Issue Analytics
- State:
- Created 10 months ago
- Comments:15 (7 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I do support fixing internal bugs like these. I’ll have a look at it.
Thanks! I will try it out.