Function getResource

  • Get a resource value by path

    Parameters

    • Optionalpath: string

      path of the resource, default to internal state path

    • OptionalundefinedIfEmpty: boolean

      if the resource does not exist, return undefined instead of throwing an error

    Returns Promise<any>

    resource value