Login redirect caused by null focus target after delayed rendering

Problem

The production app returned users to the login screen with Cannot read properties of null (reading 'focus') from actionsProcessor.js.

Likely cause and troubleshooting

The focus action may run before its target element has rendered, leaving the target null. Restarting the WPE temporarily resolved the behavior, suggesting delayed processing or resource pressure rather than a permanent application fix. Investigate WPE health by monitoring CPU usage, concurrent threads, and hook execution times. Also account for helper scripts that run on every call and may make downstream scripts appear responsible in logs. A WPE restart is only a temporary workaround; the underlying resource or timing issue remains unresolved.


Original Slack Thread

User U06Q27Y8TL6: We are being returned to the login screen when trying to login to our production app, this error in console:
```actionsProcessor.js:410
 Uncaught TypeError: Cannot read properties of null (reading 'focus')
    at A (actionsProcessor.js:410:67)
    at actionsProcessor.js:109:37```
User U06Q27Y8TL6: We restarted the WPE on our server and that seems to have solved it. We are finding that we have to restart the WPE everyday, sometimes more than once, else we get issues. Any idea why?
User UBBJX2EHM: The air is probably more of a indication of a symptom. When you try to set focus on something, but it hasn’t rendered yet. If resetting the WPE fix things then that most likely was delaying something.
User UBBJX2EHM: You definitely shouldn’t have to reset it every day, you may want to monitor things like CPU, concurrent threads and hook times for other clues
User U06Q27Y8TL6: Yes analysing logs now, but as mentioned before it always point back to helper file.
User UBBJX2EHM: My understanding was helper was updated with script. 
Also helper 100% runs on every call and other scripts are called from that so can be misleading. 
User U06Q27Y8TL6: yes agree. We are analysing further.