Redux Openfin
Redux openfin is a wrapper allowing to call openfin js api via redux actions.
- All in typescript
- Provide FLUX based apis
- Provide async based apis
- Provide cross-windows redux-action event bus
- Provide snap-dock features
Installation
npm i redux-openfin or yarn add redux-openfin
Usage
sample configure store scripts
; ; ; ; ; declare ;
sample index.tsx
; ; declare ; // actions names to be shard across windows via event bus ; ifwindow.name === process.env.REACT_APP_FIN_UUIDelse setPlatformClassdocument.body,window.navigator.platform; ReactDOM.render Provider store = App/ /Provider , document.getElementById'root' ;
Sample api usage
{ // flux api sample put; monitorInfoAction = ; //or // async api sample monitorInfoAction = ; }
Supporting apis:
The author is lazy and he won't complete this section till next release