Results for “Signals & state”
Small, practical examples. Search by task or narrow things down below.
Toggle an output using an explicit software state
Arduino / C: Keep the intended output state in a Boolean variable.
Arduino / C✓ Tested
Append to an array signal immutably
Append to an array signal immutably with a standalone Angular component and explicit browser behavior.
Angular✓ Tested
Choose an equality function for signal values
Choose an equality function for signal values with a standalone Angular component and explicit browser behavior.
Angular✓ Tested
Derive a filtered list with computed
Derive a filtered list with computed with a standalone Angular component and explicit browser behavior.
Angular✓ Tested
Expose a read-only signal view
Expose a read-only signal view with a standalone Angular component and explicit browser behavior.
Angular✓ Tested
Replace a signal’s value explicitly
Replace a signal’s value explicitly with a standalone Angular component and explicit browser behavior.
Angular✓ Tested
Replace an object signal immutably
Replace an object signal immutably with a standalone Angular component and explicit browser behavior.
Angular✓ Tested
Synchronize a document property with an effect
Synchronize a document property with an effect with a standalone Angular component and explicit browser behavior.
Angular✓ Tested
Track only dependencies used by a computed branch
Track only dependencies used by a computed branch with a standalone Angular component and explicit browser behavior.
Angular✓ Tested
Update a signal from its previous value
Update a signal from its previous value with a standalone Angular component and explicit browser behavior.
Angular✓ Tested
Copy a multibyte interrupt-owned counter atomically
Arduino / C: ATOMIC_RESTORESTATE restores the interrupt state after reading a shared value.
Arduino / C✓ Tested
Count a button’s falling edge in the main loop
Arduino / C: Compare each reading with the previous state to detect transitions.
Arduino / C✓ Tested