Skip to content

Type Alias: OnRefreshEventData ​

OnRefreshEventData = object

The data of a 'refresh' event of a Cacher: a value recomputed in the background by Cacher.wrap.

Properties ​

error? ​

optional error?: Error

The error thrown by the computation or by a store when the refresh failed; absent when it succeeded.


key ​

key: string

The key refreshed.


value ​

value: any

The new value; the value still cached when the refresh failed.

Released under the MIT License.