Skip to content

Observable 'on' and 'off' should return 'this' #6828

Open

Description

@farfromrefug

Right now on, once and off methods return nothing

To go with Node events implementation and for easy dev and reading it would be good for those methods to return this.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Activity

  1. anish-123-2006 commented on Oct 24, 2026

    @anish-123-2006

    Hi! I'd like to work on this issue. I've checked the current Observable implementation and confirmed that on(), once(), and off() currently return void. I plan to update them to return this and add tests to verify the chaining behavior. Please let me know if there are any concerns with this approach.

  2. added a commit that references this issue on Nov 5, 2026
    309fbaa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions