mirror of
https://github.com/wassname/talk.git
synced 2026-07-30 12:40:41 +08:00
Merge branch 'next' of github.com:coralproject/talk into ui-components
This commit is contained in:
@@ -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
|
||||
```
|
||||
|
||||
|
||||
@@ -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)
|
||||
);
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user