-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
Description
{
condition: '@some.property',
task: 'foo'
}
throws an exception because the condition is evaluated rather than looked up from the interpolated. This is counter intuitive as most other task attributes are interpolated.
Howabout...
- when condition is a function, execute it, passing the context as the first argument. Only support synchronous functions
- when the condition is a string starting with @ interpolate it
- when the condition is an object support an eval option, e.g.
{
condition: {
eval: 'Date.now() > 1435048419884'
},
task: 'foo'
}
Reactions are currently unavailable