Profectus / util/proxies / runAfterEvaluation
Function: runAfterEvaluation() ​
runAfterEvaluation<
T
>(maybeProxy
,callback
):void
Registers a callback to be called on a lazily evaluated proxy once its been evaluated.
Type Parameters ​
• T extends object
Parameters ​
maybeProxy ​
T
A value that may be a lazily evaluated proxy
callback ​
(object
) => void
The callback to call once the proxy has been evaluated (or immediately, if the object is not a proxy)
Returns ​
void