@daffodil/navigation
v0.92.3
Published
Platform-agnostic models, state management, and drivers for ecommerce navigation trees and breadcrumbs. Part of the Daffodil ecommerce framework.
Downloads
1,739
Readme
@daffodil/navigation
@daffodil/navigation manages the graphQL calls, state, selectors, and models for a complete tree of the root category request.
Overview
@daffodil/navigation currently supports a Magento, Shopify, and an in-memory driver (only outputs a shallow trees) for local development.
Installation
To install @daffodil/navigation, use the following commands in your terminal:
Install with npm:
npm install @daffodil/navigation --saveInstall with yarn:
yarn add @daffodil/navigationDrivers
Usage
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.
