Open
Description
Does hash
remove all properties in the prototype besides the resolved value of a promise?
For instance, the resolved promise wrapped in hash
does not include the properties from ObjectPromiseProxy
. I expect the value from hash
to be the same as when the promise is independent.
//util
import PromiseProxyMixin from '@ember/object/promise-proxy-mixin';
import ObjectProxy from '@ember/object/proxy';
const ObjectPromiseProxy = ObjectProxy.extend(PromiseProxyMixin);
//route
model() {
return hash({
displayValue: ObjectPromiseProxy.create({
promise: fetchBeyondProfessionalsSettings(store),
})
})
}
//component
displayValue.isFulfilled === undefined;
The example above would work if ObjectPromiseProxy
is not within hash
. Is this an expected behavior?
Thanks.
Metadata
Metadata
Assignees
Labels
No labels
Activity