ã®ã§ redux-capsule ãä½ãã¾ãã ããã¯ä½ï¼ 以ä¸ã®åæ©ã§ä½ããã redux middleware ã§ã é¢æ°ãã¼ã¹ã§ã¯ãªãã¯ã©ã¹ãã¼ã¹ã§ dispatcher ãè¨è¨ããã redux-thunk 㧠(dispatch, getState) ãå¼ãåãã®ãã¤ãã ããããé¢é£ã®ããå¦çã¯åãã¯ã©ã¹ã«ã¾ã¨ããã éåæå¦çã®ããã ãã«æ°ããä»çµã¿ãå°å
¥ããããªã redux-saga ã£ã¦æ¬å½ã«å¿
è¦ãªãã ãããï¼åèªï¼ ãµã³ãã«ã³ã¼ã dispatch 㨠getState ãã¯ã©ã¹ã®ä¸ã§æ±ããããã«ãªãã¾ã import { ReduxCapsule } from 'redux-capsule'; import { increase } from './actions'; export class CounterButton extends ReduxCapsule {
{{#tags}}- {{label}}
{{/tags}}