react-admin icon indicating copy to clipboard operation
react-admin copied to clipboard

Reject promise in checkError with logoutUser: false and without redirectTo causes an error #10172

Open rktamil opened this issue 1 year ago • 5 comments

Add null check for redirect and When redirect is not provided, I returned false and let the called handles the redirect.

This may not be ideal solution, happy to discuss as this is my my first contribution.

Fixes #10172

rktamil avatar Sep 01 '24 00:09 rktamil

Hi, thanks for contributing. Can you please first explain the issue?

djhi avatar Sep 02 '24 13:09 djhi

Hi ,

As per understanding this issue is caused when redirect is null for some use cases they don't want to redirect but using this to display an error message.

On Mon, Sep 2, 2024, 8:58 AM Gildas Garcia @.***> wrote:

Hi, thanks for contributing. Can you please first explain the issue?

— Reply to this email directly, view it on GitHub https://github.com/marmelab/react-admin/pull/10177#issuecomment-2324823444, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEO463T6UPCA3YI4OJWNHX3ZURVIHAVCNFSM6AAAAABNOKDW3KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRUHAZDGNBUGQ . You are receiving this because you authored the thread.Message ID: @.***>

rktamil avatar Sep 02 '24 19:09 rktamil

Any news on this one @rktamil?

djhi avatar Feb 11 '25 13:02 djhi

Hello @djhi, I will be glad to take the ownership of this PR if still needed, and @rktamil agree or doesn't reply at all @djhi please confirm if you want me to take this

carloshv93 avatar May 22 '25 19:05 carloshv93

@carloshv93 Thank you for offering to work on this issue. You can simply open a new PR, and if it gets merged first then we'll close this one. Thanks.

slax57 avatar May 28 '25 08:05 slax57

Superseded by https://github.com/marmelab/react-admin/pull/10763

slax57 avatar Jun 19 '25 08:06 slax57