You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Transaction context should be merged into the evaluation context of the hooks #521
However the hook_context.evaluation_context is created before this, so it doesn't contain the attributes or targeting key that exists in the propagated transaction context. This is unexpected. I believe that the _before_hooks_and_merge_context should be called inside _establish_hooks_and_provider so that the evaluation_context field in the hook_context can be up to date with all the attributes.
Hey @kouk, I agree that context should be merged prior to calling the before hook. I checked the JavaScript implementation and it behaves as you described. Would you be willing to make this change?
Activity
beeme1mr commentedon Jul 17, 2025
Hey @kouk, I agree that context should be merged prior to calling the before hook. I checked the JavaScript implementation and it behaves as you described. Would you be willing to make this change?
kouk commentedon Jul 18, 2025
@beeme1mr sure. I can take a stab at it.
fix: merge transaction context into hook context evaluation context (o…
fix: merge transaction context into hook context evaluation context (o…
fix: merge transaction context into hook context evaluation context (o…
fix: merge transaction context into hook context evaluation context (o…
fix: merge transaction context into hook context evaluation context (#…