Skip to content

Pass context object in the data function #5

@developerKumar

Description

@developerKumar

Pass ctx object in the data function,

Case:

Let's say if we want to fetch data according to locale then, we need to pass the context got in getInitialProps, getStaticProps, and getServerSideProps.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions