question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

uncaught at root at root take(patternOrChannel): undefined argument on React Native

See original GitHub issue

I’m receiving this error using redux-saga 0.10.2 on React Native

uncaught at root 
 at root 
 take(patternOrChannel): undefined argument

reactConsoleError   @   ExceptionsManager.js:76
console.error   @   YellowBox.js:48
log @   utils.js:176
end @   proc.js:272
task.cont   @   proc.js:102
next    @   proc.js:259
currCb  @   proc.js:308
runForkEffect   @   proc.js:497
runEffect   @   proc.js:352
next    @   proc.js:248
currCb  @   proc.js:308
runForkEffect   @   proc.js:499
runEffect   @   proc.js:352
next    @   proc.js:248
proc    @   proc.js:209
runSaga @   middleware.js:39
sagaMiddleware.run  @   middleware.js:58
configureStore  @   configureStore.js:49

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

84reactions
yelouaficommented, May 9, 2016

It means that a take(...) call inside root saga was provided with an undefined argument (e.g. because a misspelled constant)

5reactions
Andaristcommented, Jun 8, 2017

@ChadEubanks its probably issue with ur code, maybe u import some action type which doesnt exist (thus being undefined)? It should be easy to debug, just setup a breakpoint in take function

Read more comments on GitHub >

github_iconTop Results From Across the Web

Redux-saga get data from action returns patternOrChannel is ...
uncaught at check take(patternOrChannel): patternOrChannel is undefined uncaught at rootSaga at rootSaga at takeEvery
Read more >
Redux-saga get data from action returns patternOrChannel is ...
uncaught at check take(patternOrChannel): patternOrChannel is undefined uncaught at rootSaga at rootSaga at takeEvery. Error: take(patternOrChannel): ...
Read more >
API Reference - Redux-Saga
Creates an Effect description that instructs the middleware to wait for a specified action on the Store. The Generator is suspended until an...
Read more >
[Solved]-Error using redux saga, take(patternOrChannel)
Coding example for the question Error using redux saga, take(patternOrChannel): argument 8 is not valid channel or a valid pattern-Reactjs.
Read more >
How to Read React Errors (fix 'Cannot read property of ...
Got an error like this in your React component? ... at performSyncWorkOnRoot (react-dom.development.js:15008) at scheduleUpdateOnFiber ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found