This commit is contained in:
Chi Vinh Le
2018-09-06 00:06:28 +02:00
parent eb74162eef
commit 31bc5fa913
21 changed files with 415 additions and 89 deletions
@@ -43,15 +43,15 @@ const StreamQuery: StatelessComponent<InnerProps> = ({
<QueryRenderer<QueryTypes>
query={graphql`
query StreamQuery($assetID: ID!, $authRevision: Int!) {
asset(id: $assetID) {
...StreamContainer_asset
}
# authRevision is increment every time auth state has changed.
# This is basically a cache invalidation and causes relay
# to automatically update this query.
me(clientAuthRevision: $authRevision) {
...StreamContainer_user
}
asset(id: $assetID) {
...StreamContainer_asset
}
}
`}
variables={{