Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map function behaviour is not as expected #38

Open
Hajjiri opened this issue Jun 5, 2018 · 0 comments
Open

Map function behaviour is not as expected #38

Hajjiri opened this issue Jun 5, 2018 · 0 comments

Comments

@Hajjiri
Copy link
Member

Hajjiri commented Jun 5, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant