Skip to content

Does pure allow returning string (or arrays of strings)? #1339

Answered by davidkpiano
keithlayne asked this question in General
Discussion options

You must be logged in to vote

It expects: SingleOrArray<ActionObject<TContext, TEvent>> | undefined

The workaround here is to wrap it in an object: { type: 'yourAction' }, which is more explicit anyway.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@keithlayne
Comment options

@davidkpiano
Comment options

Answer selected by keithlayne
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants