Function resourceFactory

  • resourceFactory<Value, Args>(wrapperFn: ResourceFactory<Value, Args>): ((args: (() => Args)) => Value)
  • 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 +