Skip to content

Provide nextjs feature toggle HOC.Β #84

@kennylavender

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

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