1.5.11 • Published 2 years ago

@stackhouseos/flower-client v1.5.11

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Flower client lib

Libreria per la visualizzazione del flower nel progetto, basato sugli elements generati dal builder

Setup rapido Redux toolkit

import { combineReducersWithFlower, flowerEnhancer } from '@stackhouseos/flower-client'

const store = configureStore({
  reducer: combineReducersWithFlower({...reducersList}),
  enhancers: [flowerEnhancer()],
})

Con sagas custom

import { combineReducersWithFlower, flowerEnhancer } from '@stackhouseos/flower-client'

const store = configureStore({
  reducer: combineReducersWithFlower({...reducersList}),
  enhancers: [flowerEnhancer([appSaga()])],
})

Setup su progetto esistente

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
    ]
  )
}

Esempio

import Flower from '@stackhouseos/flower-client'

<Flower 
  elements={[/*elements from flower builder*/]} 
  name={'login'} 
  reducerName={`users`}
 />

CurrentNode.js

Props

flowName
  • required: true
  • type: string
reducerName
  • required: false
  • type: string
prefix
  • required: true
  • type: string
parentFlow
  • required: false
  • type: string

Flower.js

FlowerClient

Props

elements
  • required: false
  • type: instanceOf

Elementi come da export del builder.

name
  • required: false
  • type: string

Nome del flower, es. login

startId
  • required: false
  • type: string

Nome del flower, es. login

reducerName
  • required: false
  • type: string

Nome del nodo di partenza

parentFlow
  • required: false
  • type: string

Nome flower che contiene questo flower,

reloadKey
  • required: false
  • type: any
extraContext
  • required: false
  • type: instanceOf
destroyOnUnmount
  • required: false
  • type: bool
1.5.9

2 years ago

1.5.7

2 years ago

1.5.5

2 years ago

1.5.4

2 years ago

1.5.3

2 years ago

1.5.2

2 years ago

1.5.1

2 years ago

1.5.10

2 years ago

1.5.11

2 years ago

1.4.0

2 years ago

1.5.0

2 years ago

1.2.17

2 years ago

1.2.18

2 years ago

1.2.19

2 years ago

1.3.0

2 years ago

1.2.16

2 years ago

1.2.13

3 years ago

1.2.14

3 years ago

1.2.15

2 years ago

1.2.8

3 years ago

1.2.7

3 years ago

1.2.6

3 years ago

1.2.12

3 years ago

1.2.10

3 years ago

1.2.11

3 years ago

1.2.9

3 years ago

1.2.0

3 years ago

1.2.5

3 years ago

1.2.4

3 years ago

1.2.3

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.39

3 years ago

1.0.38

3 years ago

1.0.40

3 years ago

1.0.44

3 years ago

1.0.43

3 years ago

1.0.42

3 years ago

1.0.41

3 years ago

1.0.37

3 years ago

1.0.36

3 years ago

1.0.35

3 years ago

1.0.34

3 years ago

1.0.33

3 years ago

1.0.32

3 years ago

1.0.31

3 years ago

1.0.30

3 years ago

1.0.29

3 years ago

1.0.28

3 years ago

1.0.27

3 years ago

1.0.26

3 years ago

1.0.25

3 years ago

1.0.24

3 years ago

1.0.23

3 years ago

1.0.22

3 years ago

1.0.21

3 years ago

1.0.20

3 years ago

1.0.19

3 years ago

1.0.18

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.7-beta

3 years ago

1.0.6-beta

3 years ago