q2-tecton-hooks
react hooks for the q2 tecton sdk
Please ★ this repo if you found it useful ★ ★ ★
Installation
npm install --save q2-tecton-sdk q2-tecton-hooks
Usage
index.tsx
;;; render TectonProvider App / /TectonProvider, document.getElementById'app';
App.tsx
;; ; ;
Fetching Prop
Instead of using tecton?.actions?.setFetching(false)
, the fetching prop can be used
to control fetching. If the fetching prop is not set, fetching will be set to false
when tecton has loaded.
The following example will prevent fetching from automatically being set to false
. Once
the prop is set to false
, fetching will be set to false
.
index.tsx
;;; render TectonProvider fetching App / /TectonProvider, document.getElementById'app';
Hooks
Hook | Description |
---|---|
useTecton |
core tecton api |
useActions |
tecton actions |
useSources |
tecton sources |
Support
Submit an issue
Contributing
Review the guidelines for contributing
License
Nueve Solutions LLC © 2020
Changelog
Review the changelog
Contributors
- Jam Risser - Author