You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the user injects both a fallback value and fallbackFunction, like the example below, the result should be to only call the fallback function in the scenario that the toggle is not defined:
Today it is possible to define a fallback value which the
IsEnabled
will return if the feature toggle is not defined.We want to also allow the user to send in a fallbackFunction instead of a fallback value (which will take precedence over fallback value).
The fallback function should get to arguments injected:
toggleName
andunleashContext
.Example on how it would work:
If the user injects both a fallback value and fallbackFunction, like the example below, the result should be to only call the fallback function in the scenario that the toggle is not defined:
The text was updated successfully, but these errors were encountered: