MobX React helper
    Preparing search index...

    Class ObservedComponent<Props, Context, State, Snapshot>Abstract

    Type Parameters

    • Props = {}
    • Context = unknown
    • State = {}
    • Snapshot = any

    Hierarchy (View Summary)

    Index

    Constructors

    Accessors

    observedContext: any
    observedProps: any
    observedState: any

    Methods

    • Called immediately after a component is mounted. Setting state here will trigger re-rendering.

      Returns void

    • Called immediately after updating occurs. Not called for the initial render.

      The snapshot is only present if getSnapshotBeforeUpdate is present and returns non-null.

      Parameters

      Returns void

    • Called immediately before a component is destroyed. Perform any necessary cleanup in this method, such as cancelled network requests, or cleaning up any DOM elements created in componentDidMount.

      Returns void