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

Pass feature to the switchable method #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tgriesser
Copy link

@tgriesser tgriesser commented Jun 7, 2018

Thought this could be useful if you want to disable the toggle for an individual feature, useful mainly with custom strategies.

@rolftimmermans
Copy link
Member

Agree this is useful. Unfortunately it is a backwards incompatible change so we'd have to bump the major version. Would there be a way to make it backwards compatible? Maybe by checking the arity of the strategy and implementing a fallback mechanism for the old API?

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

Successfully merging this pull request may close these issues.

2 participants