Hi I am trying to use context receivers with Exposed in order to pass the transaction
What would be great, would be to have optionally a transaction in the context, something like
However as soon as I make the context optional (with the
?
) then intellij is lost and doesn't understand
this@Transaction
anymore
is there any way to make it work?
d
dave
10/16/2023, 3:10 PM
If you create an interface to wrap your transaction and then pass that as the context, you should be able to implement it in 2 ways - one using a transaction and one not. 🙃