ember-resources@6.2.1
·
423 commits
to main
since this release
Patch Changes
-
#941
bfc432b
Thanks @NullVoxPopuli! - Fix an issue with a new (not yet used feature) where Resources could directly return aCell
, and it would have its.current
method automatically called when resolving the value of a Resource.import { resource, cell } from 'ember-resources'; export const Now = resource(({ on }) => { const now = cell(Date.now()); const timer = setInterval(() => now.set(Date.now())); on.cleanup(() => clearInterval(timer)); return now; }); <template> It is: <time>{{Now}}</time> </template>