You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can we improve the onClickNext(), onClickPrevious() methods?
Suggestions:
Generalise the skipToIndex logic so that it can be used by both methods
Can we make the distinction clearer between? interfaceRefInstance.clickPrevious(), promptBackward(), and this.props.changeStage(`${this.props.pathPrefix}/${skipToIndex}`);
Can we update the logic to remove the nested if/else?
Can we remove interfaceRefInstance? If not, can we make the distinction clearer between clickPrevious and promptBackward?
The text was updated successfully, but these errors were encountered:
Can we improve the
onClickNext()
,onClickPrevious()
methods?Suggestions:
skipToIndex
logic so that it can be used by both methodsinterfaceRefInstance.clickPrevious()
,promptBackward()
, andthis.props.changeStage(`${this.props.pathPrefix}/${skipToIndex}`);
interfaceRefInstance
? If not, can we make the distinction clearer between clickPrevious and promptBackward?The text was updated successfully, but these errors were encountered: