My custom react-admin page has a component that makes several API calls. When session expired and all calls respond with 401 status, I'm redirected to login, but the notification appears multiple times (once for each failed call).
The calls are made using specialised hooks.
Is there a way to silence those notifications? Looking through react-admin code, I don't think it's possible. It seems that the only option is to resolve the promise in authProvider.checkError and handle the errors elsewhere (not sure how, yet).
Thanks for any input!