abstract away the underlying reactivity configuration (invokeHelper)
by doing this, we get destruction-association properly configured so that
when the host class is destroyed, if the resource has a destructor, it
will be called during destruction
allows the return value of the resource to be "the" value of the property.
This @use decorator is needed for function-resources, and not needed for class-based
resources (for now).
The
@use
decorator has two responsibilitiesThis
@use
decorator is needed for function-resources, and not needed for class-based resources (for now).Example