Type alias UsePromiseOptions

UsePromiseOptions: {
    preserveValue?: boolean;
}

Type declaration

  • Optional preserveValue?: boolean

    Whether to leave the value as the most recent resolved promise value or set it back to defaultValue while running the promise again. Defaults to true