mirror of
https://github.com/wassname/talk.git
synced 2026-07-19 11:28:50 +08:00
Adding variable to the scope and contemplating undefined from the BE
This commit is contained in:
@@ -19,7 +19,7 @@ export interface StreamProps {
|
||||
onLoadMore?: () => void;
|
||||
hasMore?: boolean;
|
||||
disableLoadMore?: boolean;
|
||||
user: User | null;
|
||||
user: User | null | undefined;
|
||||
}
|
||||
|
||||
const Stream: StatelessComponent<StreamProps> = props => {
|
||||
|
||||
@@ -14,7 +14,7 @@ import { User } from "../containers/UserBoxContainer";
|
||||
|
||||
interface InnerProps {
|
||||
asset: Data;
|
||||
user: User | null;
|
||||
user: User | null | undefined;
|
||||
relay: RelayPaginationProp;
|
||||
}
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ export interface User {
|
||||
|
||||
interface InnerProps {
|
||||
local: Local;
|
||||
user: User | null;
|
||||
user: User | null | undefined;
|
||||
showAuthPopup: ShowAuthPopupMutation;
|
||||
setAuthPopupState: SetAuthPopupStateMutation;
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ const StreamQuery: StatelessComponent<InnerProps> = ({
|
||||
}) => (
|
||||
<QueryRenderer<StreamQueryVariables, StreamQueryResponse>
|
||||
query={graphql`
|
||||
query StreamQuery($assetID: ID!) {
|
||||
query StreamQuery($assetID: ID!, $signedIn: Boolean!) {
|
||||
asset(id: $assetID) {
|
||||
...StreamContainer_asset
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user