SpacetimeDB icon indicating copy to clipboard operation
SpacetimeDB copied to clipboard

Repair transactionality of `st_client` removals after disconnect

Open bfops opened this issue 9 months ago • 0 comments

When the client_disconnected reducer runs successfully, we should include the st_client deletion in that transaction. As of writing we do not, instead appending another transaction afterwards. Note that if the client_disconnected reducer fails, we must then start another transaction to delete from st_client. In either case, we should commit exactly one TX.

bfops avatar Mar 07 '25 18:03 bfops