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: <T>(result: T[]) => void): this;

Parameters

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

Returns:

this