Skip to content

Pass context object in the data function #5

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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