Supabase Log Out action doesn't work when passed and triggered as a callback action

I created a component what actually just a simple confirmation dialog with a text and two buttons - Cancel and Confirm. And I wanted to make it generic via passing a message and an onConfirmAction parameters. I called the Custom Alert, passed my component and its parameters - message and Log Out action as a callback. When it was time to fire the action on Confirm button tap, nothing happened.

I checked myself with another action, which is a custom action that just prints a passed message to the console, and it worked fine that time. So I guess, the Log Out action was executed too, but there was some issue about a lost context or smth like that.

Could anybody please check and confirm the issue here? ❤️

2
1 reply