For example
I have a action calling crazyAction
it has three parameter second one and third one can be null but first one has to something as fallows;
crazyAction(firstParameter, secondParameter = null, thirdParameter = null){
return{
type: CONSTANTS.WHATEVER,
payload: {firstParameter, secondParameter, thirdParameter}
}
}
I should send the parameters by sequence when I want to dispatch to this, like;
dispatch( uiActions.navigateToPage(firstParameter, null, thirdParameter));
So the question is if I want to send only thirdParameter without second one there is another option without null things on the middle?
like this one, How is that possible?
dispatch( uiActions.navigateToPage(firstParameter, thirdParameter));