Thanks to visit codestin.com
Credit goes to github.com

Skip to content

RxState: additional connect-overload  #1632

Open
@michaelbe812

Description

@michaelbe812

Problem Solved By The Feature

Less Code needed to connect partial state observables. The current way is to call multiple times connect:

connect('a', a$)
connect('b', b$)

Solution

I would like to add this overload to connect:
connect(object: Partial<{ [P in keyof T]: Observable<T[P]> }>): void;

With this overload one could just do connect({a: a$, b: b$})

Wdyt? If you like this feature request I would be happy to contribute the implementation

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions