Closed kube closed 6 years ago
Add pipe function in the library, to allow chained transformations.
pipe
import { pipe } from 'monolite' const updatedState = pipe(state) .set(_ => _.nested.counter, x => x + 1) .set(_ => _.nested.message, word => word + '!') .end()
set is not curried anymore:
set
import { set } from 'monolite' const updatedState = set(state, _ => _.nested.counter, x => x + 1)
All helpers shortcuts for set were removed:
setMap
setAppend
setPrepend
setFilter
Chained Transformations
Add
pipe
function in the library, to allow chained transformations.Removed currying
set
is not curried anymore:Removed functions
All helpers shortcuts for
set
were removed:setMap
setAppend
setPrepend
setFilter