Documentation
    Preparing search index...
    • Type Parameters

      • Registry extends AnyActorRegistry
      • Actors extends any
      • ActorNames extends string | number | symbol

      Parameters

      Returns {
          getOrCreateActor: <ActorName extends string | number | symbol>(
              opts: ActorOptions<Registry, ActorName>,
          ) => {
              create: () => void;
              key: string;
              mount: () => void;
              setState: (set: Updater<ActorStateReference<Actors>>) => void;
              state: ActorsStateDerived<Registry, ActorName>;
          };
          store: Store<
              InternalRivetKitStore<Registry, Actors>,
              (
                  cb: InternalRivetKitStore<Registry, Actors>,
              ) => InternalRivetKitStore<Registry, Actors>,
          >;
      }