I’am trying to implement soft delete in my users, so in my root panel i put a icon button to toggle the deleted? state. Then every time that i push the button in my panel, the state of the user change.
For the workflow works like toggle button i try to send the current state of the user in his slug.
1° Set the user slug with the current state(custom state)
2° Test the custom state, if this condition is true, do something
3° Test the slug, if the conditions is true, do something
4° Then clean the slug to prevent bugs
I hope that helps you! Sorry for my poor english xD
Please, if that a better way to do this let me know!