Skip to content

Commit

Permalink
chore: cleanup consume/provide naming
Browse files Browse the repository at this point in the history
  • Loading branch information
runspired committed Jun 15, 2024
1 parent e5f6285 commit 3e89bb8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/ember/src/-private/request.gts
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ const not = (x: unknown) => !x;
// default to 30 seconds unavailable before we refresh
const DEFAULT_DEADLINE = 30_000;

let provide = service;
let consume = service;
if (macroCondition(moduleExists('ember-provide-consume-context'))) {
const { consume } = importSync('ember-provide-consume-context') as { consume: typeof service };
provide = consume;
const { consume: contextConsume } = importSync('ember-provide-consume-context') as { consume: typeof service };
consume = contextConsume;
}

function isNeverString(val: never): string {
Expand Down Expand Up @@ -73,7 +73,7 @@ export class Request<T, RT> extends Component<RequestSignature<T, RT>> {
/**
* @internal
*/
@provide('store') declare _store: Store;
@consume('store') declare _store: Store;
@tracked isOnline = true;
@tracked isHidden = true;
@tracked isRefreshing = false;
Expand Down

0 comments on commit 3e89bb8

Please sign in to comment.