@chanceprotocol/hooks
TypeScript icon, indicating that this package has built-in type declarations

2.1.4 • Public • Published

PoolTogether hooks

A collection of various useful hooks used across the PoolTogether applications.

NOTE

Make sure you keep peerDependencies and devDependencies versions in sync!

How to use

  1. yarn add @chanceprotocol/utilities
  2. import * as Hooks from '@chanceprotocol/hooks' OR import { hookYouWantToUse } from '@chanceprotocol/hooks'
  3. Ensure you call any required init functions early

Local development

Local development works best with yalc yarn global add yalc

In pooltogether-hooks: yarn start

In the app you're importing pooltogether-hooks: yalc link @chanceprotocol/hooks

When you save changes inside the hooks src folder, the package will rebuild and be pushed to all other projects that have run yalc link @chanceprotocol/hooks.

TODO:

  • jest tests

Readme

Keywords

none

Package Sidebar

Install

npm i @chanceprotocol/hooks

Weekly Downloads

0

Version

2.1.4

License

MIT

Unpacked Size

730 kB

Total Files

107

Last publish

Collaborators

  • chanceprotocol