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

props do funny things when using renderComponent inbranch #5

Description

@atomanyih
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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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