Skip to content

props key returns empty object from scope #183

Open
@mattboon

Description

@mattboon

Hi there

Have found that using the props key in next-mdx-remote's scope property always returns an empty object

See this example:
https://codesandbox.io/s/next-mdx-remote-props-s85i4?file=/pages/index.js

props.title returns undefined, but props2.title returns as expected. props does however return an empty object.
Could there be something overwriting it somewhere in MDX, or is it somehow a reserved word?

Would ideally like to use the props. notation in MDX pages as it's familiar from the React ecosystem.

Any help appreciated. Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions