This repository is used with the sole purpose of tracking Flower Client issues and new requests/suggestions.
To open a new issue use the Issues section on Github.
Libreria per la visualizzazione del flower nel progetto, basato sugli elements generati dal builder
import { combineReducersWithFlower, flowerEnhancer } from '@stackhouseos/flower-client'
const store = configureStore({
reducer: combineReducersWithFlower({...reducersList}),
enhancers: [flowerEnhancer()],
})
import { combineReducersWithFlower, flowerEnhancer } from '@stackhouseos/flower-client'
const store = configureStore({
reducer: combineReducersWithFlower({...reducersList}),
enhancers: [flowerEnhancer([appSaga()])],
})
Integrazione su redux e redux-saga già configurati nel progetto
Aggiungi ai tuoi reducer il flower
import { flowerReducer } from '@stackhouseos/flower-client'
export default combineReducers({
flower: flowerReducer,
...reducers
})
Aggiungi alle tue saghe
import { flowerSaga } from '@stackhouseos/flower-client'
export default function* root() {
yield all(
[
flowerSaga(),
...sagas
]
)
}
import Flower from '@stackhouseos/flower-client'
<Flower
elements={[/*elements from flower builder*/]}
name={'login'}
reducerName={`users`}
/>
- required: true
- type: string
- required: false
- type: string
- required: true
- type: string
- required: false
- type: string
- required: false
- type: instanceOf
Elementi come da export del builder.
- required: false
- type: string
Nome del flower, es. login
- required: false
- type: string
Nome del flower, es. login
- required: false
- type: string
Nome del nodo di partenza
- required: false
- type: string
Nome flower che contiene questo flower,
- required: false
- type: any
- required: false
- type: instanceOf
- required: false
- type: bool