Skip to main content

Overview

Overview

The FDK Store is a package that serves as a wrapper over the FDK Client Javascript SDK, providing users with a convenient interface to interact with the SDK's functionality. This package utilizes Redux Toolkit to manage the application state and automatically updates the store based on actions performed through the SDK. The FDK Store exports a class that encapsulates the Redux store and exposes methods for interacting with the SDK and retrieving data from the store. It also includes a getters object that provides getter functions for different slices of the store

fdk-store:- https://github.com/gofynd/fdk-store/blob/v2.0.2/docs/API.md

fdk-store-gql:- https://github.com/gofynd/fdk-store-gql/blob/v1_0_1/README.md

Installation

To install the FDK Store package in your project, use the following command:.

npm install `https://github.com/gofynd/fdk-store.git#v2.0.2

Usage

Importing the Package

To import the FDK Store package into your project, use the following import statement:

import FDKStore from 'fdk-store';

Creating an Instance

Create an instance of the FDKStore

const fpiOptions = {
applicationID,
applicationToken,
domain,
storeInitialData,
};

const { client: fpi } = new FDKStore(fpiOptions);

Was this section helpful?