Skip to content

Enable/disable a "category" from options #5

@nathanwinder

Description

@nathanwinder
interface DebugOptions {
  categoryA: boolean | CategoryAOptions;
  categoryB: boolean | CategoryBOptions;
}
const DebugContext = createDebugContext<DebugOptions>(true, { categoryA: false })

this will result in all categoryB components running in debug mode while categoryA is not in debug mode.

Need to consider what this does if we support category merging #6 .

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