Update bigbluebutton-html5/imports/ui/core/hooks/createUseSubscription.ts
Co-authored-by: Gustavo Trott <gustavo@trott.com.br>
This commit is contained in:
parent
963048698b
commit
0ec13a9a54
@ -10,7 +10,7 @@ export function createUseSubsciption<T>(
|
||||
query: DocumentNode | TypedQueryDocumentNode,
|
||||
usePatchedSubscription = false
|
||||
) {
|
||||
return function useGeneratedUseSubsctiontion(projectionFunction: Function): Array<Partial<T>> {
|
||||
return function useGeneratedUseSubscription(projectionFunction: Function): Array<Partial<T>> {
|
||||
const client = useApolloClient();
|
||||
const [projectedData, setProjectedData] = useState<Array<T>>([]);
|
||||
const oldProjectionOfDataRef = useRef<Array<T>>([]);
|
||||
|
Loading…
Reference in New Issue
Block a user