Axinom Mosaic Libraries
    Preparing search index...

    Interface InitialFormData<T>

    interface InitialFormData<T> {
        data?: T | null;
        entityNotFound?: boolean;
        error?: ErrorType;
        loading: boolean;
    }

    Type Parameters

    • T
    Index

    Properties

    data?: T | null

    Holds the data after the loading is finished. Make sure the property is set to null (default for GraphQL APIs) in case the entity could not be found.

    entityNotFound?: boolean

    Set this to true if the requested entity data could not be found. The same behavior behavior is also triggered if data is set to null.

    error?: ErrorType

    Holds the error details in case something went wrong while loading. It allows to pass a StationError object, a simple message (as string) any object.

    loading: boolean

    Indicates whether the data is still loading or not