Skip to content

Commit

Permalink
docs: remove confusing note from core concepts (#4328)
Browse files Browse the repository at this point in the history
  • Loading branch information
felangel authored Jan 12, 2025
1 parent 3f703cc commit 89ca532
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 16 deletions.
4 changes: 0 additions & 4 deletions docs/src/content/docs/bloc-concepts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -220,10 +220,6 @@ If we run the same program again we should see the following output:

<CounterCubitOnErrorOutputSnippet />

:::note
Just as with `onChange`, the internal `onError` override is invoked before the global `BlocObserver` override.
:::

## Bloc

A `Bloc` is a more advanced class which relies on `events` to trigger `state` changes rather than functions. `Bloc` also extends `BlocBase` which means it has a similar public API as `Cubit`. However, rather than calling a `function` on a `Bloc` and directly emitting a new `state`, `Blocs` receive `events` and convert the incoming `events` into outgoing `states`.
Expand Down
4 changes: 0 additions & 4 deletions docs/src/content/docs/ko/bloc-concepts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -220,10 +220,6 @@ Bloc 라이브러리를 사용하면 한 곳에서 모든 `Change`에 접근할

<CounterCubitOnErrorOutputSnippet />

:::note
`onChange`와 마찬가지로, 내부 `onError` override는 전역 `BlocObserver` override보다 먼저 호출됩니다.
:::

## Bloc

`Bloc`은 함수가 아닌 `event`에 의존하여 `state` 변경을 촉발하는 고급 클래스 입니다. `Bloc`은 또한 `BlocBase`를 extends하여 `Cubit`과 유사한 공용 API를 갖고 있습니다. 그러나, `Bloc`에서 `함수`를 호출하여 새로운 `state`를 직접 emit하는 대신, `Bloc``event`를 수신하고 수신된 `event`를 나가는 `state`로 변환합니다.
Expand Down
4 changes: 0 additions & 4 deletions docs/src/content/docs/pt-br/bloc-concepts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -220,10 +220,6 @@ Se rodarmos o mesmo programa novamente, devemos ver o seguinte output:

<CounterCubitOnErrorOutputSnippet />

:::note
Assim como no `onChange`, a sobrescrita interna `onError` é invocada antes da sobrescrita global do `BlocObserver`.
:::

## Bloc

Um `Bloc` é uma classe mais avançada que depende de `eventos` para acionar mudanças de `estado` em vez de funções. `Bloc` também estende `BlocBase`, o que significa que ele tem uma API pública semelhante ao `Cubit`. No entanto, em vez de chamar uma `função` em um `Bloc` e emitir diretamente um novo `estado`, os `Blocs` recebem `eventos` e convertem os `eventos` de entrada em `estados` de saída.
Expand Down
4 changes: 0 additions & 4 deletions docs/src/content/docs/zh-cn/bloc-concepts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -220,10 +220,6 @@ import DebounceEventTransformerSnippet from '~/components/concepts/bloc/Debounce

<CounterCubitOnErrorOutputSnippet />

:::note
`onChange` 一样,内部重写的 `onError` 会在全局 `BlocObserver` 重写的 `onError` 之前被调用。
:::

## Bloc

相对于函数来说,`Bloc` 是一个依赖 `事件` 触发 `状态` 变更的更高级的类。`Bloc` 同样扩展了 `BlocBase`,这意味着它和 `Cubit` 一样拥有类似的公共 API,`Blocs` 不是调用 `Bloc` 上的 `函数` 并直接发出新的 `状态`,而是接收 `事件` 并将传入的 `事件` 转换为传出的 `状态`
Expand Down

0 comments on commit 89ca532

Please sign in to comment.