Skip to content

Commit a8dd8bb

Browse files
Merge pull request #942 from NullVoxPopuli/changeset-release/main
Release Preview
2 parents 277518f + 6c99216 commit a8dd8bb

File tree

3 files changed

+24
-23
lines changed

3 files changed

+24
-23
lines changed

.changeset/five-hounds-smell.md

-22
This file was deleted.

ember-resources/CHANGELOG.md

+23
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,28 @@
11
# ember-resources
22

3+
## 6.2.1
4+
5+
### Patch Changes
6+
7+
- [#941](https://github.com/NullVoxPopuli/ember-resources/pull/941) [`bfc432b`](https://github.com/NullVoxPopuli/ember-resources/commit/bfc432bd2c6f15b28073dde835b6b90e2d39d500) Thanks [@NullVoxPopuli](https://github.com/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.
8+
9+
```gjs
10+
import { resource, cell } from 'ember-resources';
11+
12+
export const Now = resource(({ on }) => {
13+
const now = cell(Date.now());
14+
const timer = setInterval(() => now.set(Date.now()));
15+
16+
on.cleanup(() => clearInterval(timer));
17+
18+
return now;
19+
});
20+
21+
<template>
22+
It is: <time>{{Now}}</time>
23+
</template>
24+
```
25+
326
## 6.2.0
427

528
### Minor Changes

ember-resources/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ember-resources",
3-
"version": "6.2.0",
3+
"version": "6.2.1",
44
"keywords": [
55
"ember-addon"
66
],

0 commit comments

Comments
 (0)