In useLocation.js, requesting user permissions is incomplete. As per the docs here, this function always resolves with a PermissionResponse object, even if permission is not granted.
Our code needs to check the response object, and throw an error manually in order to enter the catch block as expected.
In useLocation.js, requesting user permissions is incomplete. As per the docs here, this function always resolves with a PermissionResponse object, even if permission is not granted.
Our code needs to check the response object, and throw an error manually in order to enter the catch block as expected.