Error codes · Signals and UI state
PW5301
signal_read_where_it_cannot_change
The program must hold to this: a signal is read only where the browser reads it again when it changes: a template part, a handler, or a page query's key.
Reading the diagnostic
pw check prints the code in brackets, [PW5301], 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.