Skip to content
This repository has been archived by the owner on Apr 8, 2020. It is now read-only.

props do funny things when using renderComponent inbranch #5

Open
atomanyih opened this issue May 22, 2017 · 1 comment
Open

props do funny things when using renderComponent inbranch #5

atomanyih opened this issue May 22, 2017 · 1 comment

Comments

@atomanyih
Copy link

const enhance = assemble(
  branch(
    () => true,
    renderComponent(Component)
  ),
  withProps({someProp: 'hello'})
);

In the above example, Component is rendered with someProp.
The same applies if you use omitProps

const enhance = assemble(
  branch(
    () => true,
    combine(
      debug(),
      renderComponent(Component)
  ),
  withProps({someProp: 'hello'})
);

But if you add debug it logs {}

Is this expected?

@atomanyih
Copy link
Author

@cvle Heya, any insight into this issue?

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

No branches or pull requests

1 participant