Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support option category merging #6

Open
nathanwinder opened this issue Nov 2, 2018 · 0 comments
Open

Support option category merging #6

nathanwinder opened this issue Nov 2, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@nathanwinder
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant