Skip to content

addListener giving type error wrt actionCreator #5030

Answered by EskiMojo14
SansPapyrus683 asked this question in Q&A
Discussion options

You must be logged in to vote

export const findSlice: Slice<FindState> =

never do this

you are throwing away all of the information it knows about your slice

remove the type annotation and everything should be a lot happier

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@SansPapyrus683
Comment options

@markerikson
Comment options

@SansPapyrus683
Comment options

@EskiMojo14
Comment options

Answer selected by SansPapyrus683
@markerikson
Comment options

@SansPapyrus683
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants