Skip to content

Commit

Permalink
Update function.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli authored May 15, 2024
1 parent ba40c8a commit 6bcf17d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reactiveweb/src/function.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { resource } from 'ember-resources';
* import { trackedFunction } from 'reactiveweb/function';
* import { on } from '@ember/modifier';
*
* const Request = resourceFactory((idFn) => {
* function Request(idFn) {
* return resource(({use}) => {
* let trackedRequest = use(trackedFunction(async () => {
* let id = idFn();
Expand All @@ -30,7 +30,7 @@ import { resource } from 'ember-resources';
*
* return trackedRequest;
* });
* });
* }
*
* class Demo extends Component {
* @tracked id = 1;
Expand Down

0 comments on commit 6bcf17d

Please sign in to comment.