Skip to content

Relation#subscribe is not consistent #8

@hecrj

Description

@hecrj

Events received during a subscription are dispatched directly to the given block, thus they don't go through the relation pipeline. That means that mappers don't affect the received events:

rom.relation(:tasks).as(:entity).subscribe do |event|
  # event is not an entity here...
end

Is there an easy way to fix this?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions