morphic-ts icon indicating copy to clipboard operation
morphic-ts copied to clipboard

Feature Request: createReducer without initial state

Open tmueller opened this issue 3 years ago • 1 comments

Hi Stéphane,

thanks for creating such a fantastic library.

I have a small feature request for createReducer. Would you be willing to include a createReducer function without initial state.

Use cases here are Array.prototype.reduce or elmish update functions, which both need an intial state. But this initial state is independant of the reducer.

Regards, Thomas

tmueller avatar Jun 24 '22 08:06 tmueller

Sorry, I'm not very active on this library anymore (switching from fp-ts to effect-ts made me use the Morphic port inside effect-ts). You may use a simpler matcher I guess..

sledorze avatar Oct 03 '22 21:10 sledorze