Skip to content

Provide nextjs feature toggle HOC. #84

Description

@kennylavender

Design and implement a nextjs HOC that assists users in toggling content and status's based on active/inactive features. It should

  • render the correct page on both the server and client
  • send the correct status code from the server

Post suggestions for the HOC API here for discussion.

I believe nextjs requires that getInitialProps sets status code in order to accomplish the goals above.

Some details here: #37 (comment)

Don't export the new HOC in src/index.js. We want users to manually import this separate from the main module to avoid code bloat for those that don't use nextjs. See how RITEway provide render-component as an example

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions