dappconnect-vote-poll-sdk/packages/polling-hooks/README.md

7 lines
351 B
Markdown
Raw Normal View History

2021-09-23 22:08:32 +00:00
Package contains react hooks that help with memoizing values
## hooks
-`usePollList(wakuPolling: WakuPolling | undefined)` returns array of DetailedTimedPoll of polls on waku network
-`useWakuPolling(appName: string, tokenAddress: string, provider: Web3Provider | undefined, multicallAddress: string | undefined)` returns meoized WakuPolling object