Skip to content

Support option category merging #6

@nathanwinder

Description

@nathanwinder
interface DebugOptions {
  log: LogDebugOptions;
  other: OtherDebugOptions;
}
const DebugContext = createDebugContext<DebugOptions>(true);
const DebuggableOther = withDebugProps(Other, DebutContext, "log", "other");

This would result in both the properties from log options and other options being applied to the component. This would be helpful in cases like logging where I want to option to apply across multiple components.

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