Allows wrapper functions to provide a [[resource]] for use in templates.
Only library authors may care about this, but helper function is needed to "register"
the wrapper function with a helper manager that specifically handles invoking both the
resource wrapper function as well as the underlying resource.
App-devs / consumers may not ever need to know this utility function exists
Example using strict mode + <template> syntax and a template-only component:
Allows wrapper functions to provide a [[resource]] for use in templates.
Only library authors may care about this, but helper function is needed to "register" the wrapper function with a helper manager that specifically handles invoking both the resource wrapper function as well as the underlying resource.
App-devs / consumers may not ever need to know this utility function exists
Example using strict mode +
<template>
syntax and a template-only component:Alternatively,
resourceFactory
can wrap the wrapper function.