Update bigbluebutton-html5/imports/ui/core/hooks/createUseSubscription.ts

Co-authored-by: Gustavo Trott <gustavo@trott.com.br>
This commit is contained in:
Tainan Felipe 2023-06-02 14:50:10 -03:00 committed by GitHub
parent 963048698b
commit 0ec13a9a54
No account linked to committer's email address

View File

@ -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>>([]);