Page Contents

Home > @loopback/context > ContextView > once

ContextView.once() method

The “resolve” event is emitted when the cached values are resolved and updated.

Signature:

once(eventName: 'refresh', listener: <V>(result: V[]) => void): this;

Parameters

Parameter Type Description
eventName ‘refresh’ The name of the event - always refresh.
listener <V>(result: V[]) => void The listener function to call when the event is emitted.

Returns:

this