Skip to content

Commit f0f95fb

Browse files
committed
resolved conflict
1 parent 82d2959 commit f0f95fb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

content/docs/hooks-reference.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,9 +245,7 @@ function reducer(state, action) {
245245
case 'reset':
246246
return init(action.payload);
247247
default:
248-
// Um reducer sempre deve return um state válido
249-
// Alternativamente você pode ser lançar uma exceção if uma ação inválida for disparada
250-
return state;
248+
throw new Error();
251249
}
252250
}
253251

0 commit comments

Comments
 (0)