Merge branch 'next' of github.com:coralproject/talk into ui-components

This commit is contained in:
Belen Curcio
2018-08-08 08:31:08 -03:00
102 changed files with 2617 additions and 588 deletions
+7 -1
View File
@@ -5,5 +5,11 @@ route: '/'
# Introduction
Hello, I'm a mdx file!
## Running the Talk V5
Run this command to start Talk V5 in watch mode:
```sh
npm run watch
```
+23
View File
@@ -78,3 +78,26 @@ const enhanced = withLocalStateContainer(
export type ContainerProps = ReturnPropTypes<typeof enhanced>;
export default enhanced;
```
A working chaining example looks like this:
```
const enhanced = withFragmentContainer<{ data: Data }>({
data: graphql`
fragment PermalinkViewContainerQuery on Query
@argumentDefinitions(commentID: { type: "ID!" }) {
comment(id: $commentID) {
...CommentContainer
}
}
`,
})(
withLocalStateContainer<Local>(
graphql`
fragment PermalinkViewContainerLocal on Local {
assetURL
}
`
)(PermalinkViewContainer)
);
```