At my job we use recompose, and we use this kind of curried functions, that to me seem overly complicated and make my brain hurt.
Can anyone explain in english how this works?
Thanks
withStateHandlers(({ readAt, isSender }) => ({ trackVisibility: !isSender && !readAt }), {
updateTrackVisibility: () => () => ({
trackVisibility: false,
}),
}),
I know readAt and isSender, are coming from a fragment, declared above.
The most confusing part is the function that returns another function after updateTrackVisibility
???