Closed janhesters closed 1 year ago
I often find myself writing a clear action creator:
import autodux from 'autodux'; const initial = ''; export const { reducer: name, actions: { setName, clearName }, selectors: { getName }, } = autodux({ slice: 'name', initial, actions: { clearName: () => initial, }, });
I'm interested in creating a PR to add this clear action creator for the slice and each key of the initial object (similar to the set action creator). Would you be open for that?
clear
set
I often find myself writing a clear action creator:
I'm interested in creating a PR to add this
clear
action creator for the slice and each key of the initial object (similar to theset
action creator). Would you be open for that?