flipflop icon indicating copy to clipboard operation
flipflop copied to clipboard

Pass feature to the switchable method

Open tgriesser opened this issue 7 years ago • 1 comments

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

tgriesser avatar Jun 07 '18 19:06 tgriesser

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?

rolftimmermans avatar May 06 '19 13:05 rolftimmermans