Skip to content
Compare
Choose a tag to compare
@github-actions github-actions released this 03 Sep 14:10
· 886 commits to main since this release
8c3e9e0

Minor Changes

  • 6a03905: BREAKING CHANGE: Change API of LiveQueryStore.

    The register method of the LiveQueryStore now has changed:

    import type { DocumentNode, ExecutionResult } from "graphql";
    
    export type UnsubscribeHandler = () => void;
    export type OperationVariables = { [key: string]: any } | null | undefined;
    
    export abstract class LiveQueryStore {
      abstract async triggerUpdate(identifier: string): Promise<void>;
      abstract register(
        operationDocument: DocumentNode,
        operationVariables: OperationVariables,
        executeQuery: () => Promise<ExecutionResult>,
        publishUpdate: (executionResult: ExecutionResult, payload: any) => void
      ): UnsubscribeHandler;
    }

Patch Changes