• Register a projection model on this client using React hooks.

    Type Parameters

    • Projection

    Parameters

    • client: Client

      The client to register the projection model with.

    • domain: string

      The domain of the projection model.

    • model: ProjectionModel<unknown, Projection>

      The projection model to register.

    Returns {
        dispatch: ((action) => boolean);
        use: (() => Projection);
    }

    An object with methods to use and dispatch actions to the projection model.