Documentation
    Preparing search index...

    Function createRivetKitWithClient

    • Type Parameters

      Parameters

      Returns {
          useActor: <ActorName extends string | number | symbol>(
              opts: ActorOptions<Registry, ActorName>,
          ) => {
              connection:
                  | ActorConn<ExtractActorsFromRegistry<Registry>[ActorName]>
                  | null;
              error: Error | null;
              handle: ActorHandle<ExtractActorsFromRegistry<Registry>[ActorName]> | null;
              hash: string;
              isConnected?: boolean;
              isConnecting?: boolean;
              isError?: boolean;
              opts: {
                  createInRegion?: string;
                  createWithInput?: unknown;
                  enabled?: boolean;
                  key: string | string[];
                  name: keyof ExtractActorsFromRegistry<Registry>;
                  params?: Record<string, string>;
              };
              useEvent: (eventName: string, handler: (...args: any[]) => void) => void;
          };
      }

      • useActor: <ActorName extends string | number | symbol>(
            opts: ActorOptions<Registry, ActorName>,
        ) => {
            connection:
                | ActorConn<ExtractActorsFromRegistry<Registry>[ActorName]>
                | null;
            error: Error | null;
            handle: ActorHandle<ExtractActorsFromRegistry<Registry>[ActorName]> | null;
            hash: string;
            isConnected?: boolean;
            isConnecting?: boolean;
            isError?: boolean;
            opts: {
                createInRegion?: string;
                createWithInput?: unknown;
                enabled?: boolean;
                key: string | string[];
                name: keyof ExtractActorsFromRegistry<Registry>;
                params?: Record<string, string>;
            };
            useEvent: (eventName: string, handler: (...args: any[]) => void) => void;
        }