Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 1006 Bytes

File metadata and controls

26 lines (20 loc) · 1006 Bytes

@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 --save

Install with yarn:

yarn add @daffodil/navigation

Drivers

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.