File tree Expand file tree Collapse file tree 2 files changed +0
-30
lines changed
es/documentation/command_it Expand file tree Collapse file tree 2 files changed +0
-30
lines changed Original file line number Diff line number Diff line change @@ -147,21 +147,6 @@ Never create circular pipe chains - they cause infinite loops:
147147commandA.pipeToCommand(commandB);
148148commandB.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
Original file line number Diff line number Diff line change @@ -147,21 +147,6 @@ Nunca crees cadenas de pipes circulares - causan loops infinitos:
147147commandA.pipeToCommand(commandB);
148148commandB.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
You can’t perform that action at this time.
0 commit comments