Error codes · Signals and UI state
PW5302
ui_state_not_a_signal
The program must hold to this: a handler changes a signal, not a binding of the body it is written in.
Reading the diagnostic
pw check prints the code in brackets, [PW5302], with the sentence above and the place in your program. Errors and diagnostics explains how to read one, and every code is listed with its rule.