-
const test = {
effects: dispatch => ({
select(id?:string, state):void {
dispatch.testSelect(id?id:state.oldSelect);
}
})
} |
Beta Was this translation helpful? Give feedback.
Answered by
tianzhich
Aug 16, 2021
Replies: 1 comment 6 replies
-
I'm not sure what you are asking here. In your above example, you already defined an optional parameter |
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
StringKe
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm not sure what you are asking here. In your above example, you already defined an optional parameter
id?: string
.