Skip to content

Documentation / @warp-drive/ember

@warp-drive/ember

This library provides reactive utilities for working with promises and requests, building over these primitives to provide functions and components that enable you to build robust performant apps with elegant control flow.

Using in .hbs files

The components and reactive utilities this library exports are intended for use with gjs/gts (Ember's Template Tag Format.

To use them in handlebars (.hbs) files, your app should re-export them.

Definition

app/components/await.ts
ts
export { Await as default } from '@warp-drive/ember';

Usage

app/templates/application.hbs
hbs
<Await @promise={{this.getTheData}}></Await>

This approach allows renaming them to avoid conflicts just by using a different filename if desired:

ts
export { Await as default } from '@warp-drive/ember';
hbs
<WarpDriveAwait @promise={{this.getTheData}}></WarpDriveAwait>

Components

Other

Released under the MIT License.