Open couzic opened 5 years ago
Currently, one can return (state) => state
searchBeerName: name => name.length > 0 ? _.focusPath('loading').setValue(true) : state => state,
Returning null would look like:
null
searchBeerName: name => name.length > 0 ? _.focusPath('loading').setValue(true) : null,
Returning false would look like:
false
searchBeerName: name => name.length > 0 && _.focusPath('loading').setValue(true)
Currently, one can return (state) => state
Returning
null
would look like:Returning
false
would look like: