Is there any workaround to access the turbo stream end target user ID?

Was building turbo comments then tried to add Pundit to control editing / destroying comments. When you append a new comment to the original poster that’s dead simple as you can pass in the current_user as a local.

When you push to the other users viewing that same comment page not so much. If I had the user ID and the account ID I could just do another Active Record look up. Not ideal but it would work.

Is there any way to access this in the partial?

Hello there,

You can us a stimulus controller to handle that. Let me know if you need further information.