Skip to content

Commit

Permalink
resolved conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
thadeu committed Feb 14, 2019
1 parent 82d2959 commit f0f95fb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions content/docs/hooks-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,7 @@ function reducer(state, action) {
case 'reset':
return init(action.payload);
default:
// Um reducer sempre deve return um state válido
// Alternativamente você pode ser lançar uma exceção if uma ação inválida for disparada
return state;
throw new Error();
}
}
Expand Down

0 comments on commit f0f95fb

Please sign in to comment.