Skip to content

Refactor connector config and introduce scope.#9

Merged
10xjs merged 1 commit intonextfrom
custom-scope
Dec 23, 2016
Merged

Refactor connector config and introduce scope.#9
10xjs merged 1 commit intonextfrom
custom-scope

Conversation

@10xjs
Copy link
Copy Markdown
Contributor

@10xjs 10xjs commented Dec 23, 2016

All of the relocation connector config can be assigned as props on the connected component instance or configured within the call to the relocation connector.

Instead of taking separate render map and config parameters, the connector now takes a single default props object. The render map can be defined within as components or can be provided as a components prop on the rendered instance.

In addition an optional scope option allows namespacing the consumed and generated props. This is designed to prevent conflicts with existing props on the connected component and allows composition with multiple relocation connector calls on the same component.

All of the `relocation` connector config can be assigned as props on the connected component instance or configured within the call to the `relocation` connector.

Instead of taking separate render map and config parameters, the connector now takes a single default props object. The render map can be defined within as `components` or can be provided as a `components` prop on the rendered instance.

In addition an optional `scope` option allows namespacing the consumed and generated props. This is designed to prevent conflicts with existing props on the connected component and allows composition with multiple `relocation` connector calls on the same component.
@10xjs 10xjs merged commit c03c36e into next Dec 23, 2016
@10xjs 10xjs deleted the custom-scope branch December 23, 2016 02:26
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

Successfully merging this pull request may close these issues.

1 participant