Skip to content

Commit

Permalink
docs: mention stream_transform and rxdart in bloc-concepts.mdx (#…
Browse files Browse the repository at this point in the history
…4155)

Co-authored-by: Felix Angelov <felangelov@gmail.com>
  • Loading branch information
Code-Remote and felangel committed Apr 30, 2024
1 parent 9aaa806 commit 6bacbc0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/src/content/docs/bloc-concepts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,10 @@ This tells us that the user was logged out but it doesn't explain why which migh

Another area in which `Bloc` excels over `Cubit` is when we need to take advantage of reactive operators such as `buffer`, `debounceTime`, `throttle`, etc.

:::tip
See [`package:stream_transform`](https://pub.dev/packages/stream_transform) and [`package:rxdart`](https://pub.dev/packages/rxdart) for stream transformers.
:::

`Bloc` has an event sink that allows us to control and transform the incoming flow of events.

For example, if we were building a real-time search, we would probably want to debounce the requests to the backend in order to avoid getting rate-limited as well as to cut down on cost/load on the backend.
Expand Down

0 comments on commit 6bacbc0

Please sign in to comment.