@daffodil/navigation
TypeScript icon, indicating that this package has built-in type declarations

0.68.1 • Public • Published

@daffodil/navigation

Building and maintaining a model and code for an ecommerce store is complex and mentally taxing. @daffodil/navigation provides clear interfaces, models, and factories for the frontend of an ecommerce store so that you don't have to.

The navigation module manages the graphQL calls, state, selectors, and models for a complete tree of the root category request. Requests for a navigation should be made with a DaffNavigationLoad(id) action through the DaffNavigationFacade. Selection of the retrieved navigation and its loading state can also be done through the DaffNavigationFacade with the navigation$ and loading$ attributes.

Right now, the @daffodil/navigation package supports an in-memory for developing locally (only outputs a shallow tree) and a magento driver.

Installation

npm install @daffodil/navigation

To use the @daffodil/navigation with an in-memory-web-api, import the DaffNavigationInMemoryDriverModule.forRoot() into your app.module. To use the @daffodil/navigation with a magento backend, import the DaffNavigationMagentoDriverModule.forRoot() into your app.module.

Readme

Keywords

none

Package Sidebar

Install

npm i @daffodil/navigation

Weekly Downloads

0

Version

0.68.1

License

MIT

Unpacked Size

227 kB

Total Files

140

Last publish

Collaborators

  • damienwebdev
  • griest