Class MobxStore

MobxStore Class

Constructors

Properties

loading: boolean = false

Return the loading state of fetching objects, adding a new object or saving objects.

objects: ParseMobx[] = []

Contains the observable parseMobx objects

parseError?: Error

Contains the parse error object

subscriptionOpen: boolean = false

If liveQuery subscription is open, the value will be false.

Methods

  • Clear error observable

    Returns void

  • Create and save an object to the list of observable objects.

    Parameters

    • params: Attributes
    • Optionaloptions: CreateObjectOptions

    Returns void

  • Delete an object on the server and update hte objects list.

    Parameters

    • obj: ParseMobx
    • Optionaloptions: DeleteObjectOptions

    Returns void

  • Fetch Objects from parse server and update the Objects list

    Parameters

    • OptionalparseQuery: Query<Object<Attributes>>

    Returns void

  • Register a callback for onCreate

    Parameters

    • callback: EventCallback

    Returns void

  • Register a callback for onDelete

    Parameters

    • callback: EventCallback

    Returns void

  • Register a callback for onEnter

    Parameters

    • callback: EventCallback

    Returns void

  • Register a callback for onLeave

    Parameters

    • callback: EventCallback

    Returns void

  • Register a callback for onUpdate

    Parameters

    • callback: EventCallback

    Returns void

  • Subscribe to liveQuery

    Parameters

    • OptionalparseQuery: Query<Object<Attributes>>

    Returns void

  • Unsubscribe from LiveQuery

    Returns void