-
-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Labels
enhancementImprovement in existing featureImprovement in existing feature
Description
From effector doc:
split({
source: messageReceived,
match: {
text: msg => msg.type === 'text',
audio: msg => msg.type === 'audio',
},
cases: createApi(textContent, {
text: (list, {value}) => [...list, value],
audio: (list, {duration}) => [...list, `audio ${duration} ms`],
__: list => [...list, 'unknown message'],
}),
})
Metadata
Metadata
Assignees
Labels
enhancementImprovement in existing featureImprovement in existing feature