Open rolandjitsu opened 8 years ago
Reopen, #1 was supposed to be closed instead.
Partial impl. of the feature is published on the next
tag on NPM. See potion-node#next for current progress.
Current issues with using @async
props:
.update()
we'll end up in the same situation as above
A user should be able to mark certain
Item
properties as async and when references are resolved, these async properties should be skipped. Instead of resolving these async properties, their values should be promises that are not resolved unless their getter gets called.Example:
In case of usage with Angular 2+, it would integrate well with the
async
pipe:This feature can be useful when we do not want to resolve every reference to a resource if there are too many and/or if they are not used anywhere.
NOTE: It may not be possible to use the getter for a property on
Item
, this needs further investigation.