React/redux, displaying multiple components, sharing same actions, but with different state

后端 未结 2 2220
伪装坚强ぢ
伪装坚强ぢ 2021-02-20 06:16

Let\'s say I have a reusable container. It is a wizard with multiple pages.

The wizard state is driven by redux/actions. When an action is fired, I use a reducer to upda

2条回答
  •  遇见更好的自我
    2021-02-20 06:52

    The OP asked for a lib for this, so I am just throwing it here.

    I created infra functions which will intercept the actions and add meta-data to each action. (following FSA) You can use this easily to create multiple containers without them affecting each other.

    reducer-action-interceptor

提交回复
热议问题