@phoenix-protocol/state
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

State Package

The State package is a collection of state management utilities for the Phoenix Frontend project. It utilizes Zustand, a powerful library for managing and caching asynchronous data.

Installation

To install the State package, follow these steps:

  1. Ensure that you have Node.js and yarn installed on your machine.
  2. Navigate to the root directory of the Phoenix Frontend project.
  3. Run yarn install to install all project dependencies.
  4. Navigate to the /packages/state directory.

Usage

To use the State package in your application, follow these steps:

  1. Import the desired state providers from the State package into your project.
  2. Wrap your components with the imported state providers to access the provided state management functionalities.
  3. Utilize the available hooks and utilities provided by React Query to manage and interact with the application's state.
  4. Customize the state management as needed, utilizing the options and configurations available in React Query and the State package.

Readme

Keywords

none

Package Sidebar

Install

npm i @phoenix-protocol/state

Weekly Downloads

2

Version

0.0.2

License

GPL-3.0-or-later

Unpacked Size

145 kB

Total Files

74

Last publish

Collaborators

  • msteiner96
  • phoenix-varnotused