Skip to content

Map function behaviour is not as expected #38

Description

@Hajjiri

Current behaviour, it maps the props asynchronously only.
Expected behaviour, it maps the props as by default when component is constructed, and asynchronously.

I want to achieve the below using rxJs map,

withObservable((app, props$) => {
    return props$.pipe(map(props => ({
      foo: props.bar,
    })));
  }),

with frintJs map,

map(props => ({ foo: props.bar }))

However, the only way to do it now without rxJs map, is to use a combination of withDefault and map functions of frintJs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions