MCPcopy Create free account
hub / github.com/Netflix/dgs-examples-java / SubscriptionPanel

Function SubscriptionPanel

ui-example/src/index.tsx:82–93  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

80}
81
82const SubscriptionPanel : React.FC = () => {
83 const {data, loading, error} = useSubscription(gql`
84 subscription ReviewAdded {
85 reviewAdded(showId: 1) {
86 username
87 }
88 }
89 `, {});
90
91
92 return data?<div>{data.reviewAdded.username}: { data.reviewAdded.username}</div>:<div/>
93}
94
95ReactDOM.render(
96 <ApolloProvider client={client}>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected