Skip to content

Commit 2420307

Browse files
committed
Simplify circular pipes warning - remove confusing guard example
1 parent e292c27 commit 2420307

File tree

2 files changed

+0
-30
lines changed

2 files changed

+0
-30
lines changed

docs/documentation/command_it/command_chaining.md

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -147,21 +147,6 @@ Never create circular pipe chains - they cause infinite loops:
147147
commandA.pipeToCommand(commandB);
148148
commandB.pipeToCommand(commandA); // A triggers B triggers A triggers B...
149149
```
150-
151-
If you need bidirectional communication, use guards:
152-
153-
```dart
154-
// ✅ Safe: Guard against loops
155-
bool _updating = false;
156-
157-
commandA.listen((value, _) {
158-
if (!_updating) {
159-
_updating = true;
160-
commandB(value);
161-
_updating = false;
162-
}
163-
});
164-
```
165150
:::
166151

167152
## API Reference

docs/es/documentation/command_it/command_chaining.md

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -147,21 +147,6 @@ Nunca crees cadenas de pipes circulares - causan loops infinitos:
147147
commandA.pipeToCommand(commandB);
148148
commandB.pipeToCommand(commandA); // A dispara B dispara A dispara B...
149149
```
150-
151-
Si necesitas comunicación bidireccional, usa guardas:
152-
153-
```dart
154-
// ✅ Seguro: Guarda contra loops
155-
bool _updating = false;
156-
157-
commandA.listen((value, _) {
158-
if (!_updating) {
159-
_updating = true;
160-
commandB(value);
161-
_updating = false;
162-
}
163-
});
164-
```
165150
:::
166151

167152
## Referencia de API

0 commit comments

Comments
 (0)