@chatscope/use-chat
Version:
React hook for state management in chat applications
5 lines (4 loc) • 347 B
TypeScript
import type { MutableRefObject } from "react";
import type { ChatServiceFactory, UpdateState } from "../Types";
import type { IChatService, IStorage } from "../interfaces";
export declare function useLazyServiceFactoryRef<S extends IChatService>(serviceFactory: ChatServiceFactory<S>, storage: IStorage, update: UpdateState): MutableRefObject<S>;