我无法访问传奇中的功能

时间:2019-06-28 18:44:22

标签: react-native redux redux-saga

我对React-native还是陌生的,我因为API而遇到了传奇,但是我的第一个测试代码无法正常工作,因为它没有通过传奇中的函数,任何人都知道可以帮助我吗? https://github.com/Andersonfrfilho/testeSaga/blob/master/src/store/sagas.js

1 个答案:

答案 0 :(得分:0)

   //takeEvery importar as actions</p>
   //put chamar o reducer
   import {takeEvery,put} from 'redux-saga/effects'</h6>
   //por padrão</h6>
  //sempre chamar um ponto de parada com um arraya vazio
    function* asyncAddTodo(){
        console.log('entrou an funcao assincrona')
    }
    export default function* root(){
        //pegueTodaAssyncAddTODO

       yield [
           takeEvery('Teste', asyncAddTodo),
        ];
    }

       yield [
           takeEvery('Teste', asyncAddTodo),
        ];
    }
    </i>