Skip to content

ember-resources@6.2.1

Compare
Choose a tag to compare
@github-actions github-actions released this 10 Jul 16:33
· 423 commits to main since this release
a8dd8bb

Patch Changes

  • #941 bfc432b Thanks @NullVoxPopuli! - Fix an issue with a new (not yet used feature) where Resources could directly return a Cell, 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>