i can't find the documentation for it, but i think you should do something like this.
withHooks({
onInit: ({ isLoading }) => {
if (isLoading) {
screenLockService.lock();
} else {
screenLockService.unlock();
}
},
});
now when isLoading changes it should update the lockscreen