mobx-sentinel API doc
    Preparing search index...

    Annotation for watching changes to a property and a getter

    @watch by default unwraps boxed observables, arrays, sets, and maps — meaning it uses shallow comparison. If you don't want this behavior, use @watch.ref instead.

    • @observable and @computed (and their variants) are automatically assumed to be @watched,
      unless @unwatch or @unwatch.ref is specified.
    • @nested (and its variants) are considered @watched unless @unwatch is specified.
    • If @watch and @watch.ref are specified for the same key (in the same inheritance chain),
      the last annotation prevails.
    • Parameters

      • target: object
      • propertyKey: string | symbol

      Returns void

    • Parameters

      • value: (this: object) => any
      • context: ClassGetterDecoratorContext

      Returns void | (this: object) => any

    • Parameters

      • value: ClassAccessorDecoratorTarget<object, any>
      • context: ClassAccessorDecoratorContext

      Returns void | ClassAccessorDecoratorResult<object, any>

    • Parameters

      • value: undefined
      • context: ClassFieldDecoratorContext<object, any>

      Returns any

    Index

    Properties

    Properties

    ref: PropertyDecorator<object> & ClassGetterDecorator<object, any> & ClassAccessorDecorator<
        object,
        any,
    > & ClassFieldDecorator<object, any> = createWatchRef

    Annotation for watching values with identity comparison

    It has no effect when combined with @nested.