Question: How to trace error in react native in reflux?


How to trace error in react native in reflux?

Answers 1
Added at 2016-07-04 08:07

how can i trace this error? screen here I can find 'apply' property in my code. Thanks for the help!

I found error by commenting every function

  onLoadUser: function (user) {
    Actions.loadUser.completed(user); // at this place catch error
  onLoadUserCompleted: function (user) {

  setCurrentUser(user) {
    currentUser = {
      user_id: user.user_id,
      token: user.access_token,
      username: user.username,

  getCurrentUser() {
    return currentUser;

Why is it happening?(

nr: #1 dodano: 2016-07-04 10:07

If you're conected to the debug server, usually after a second or two, the bundled lines are replaced with the source code files & lines. If not, you could enable remote debugging in your development menu, and debug the flow using chrome.

You can read more about debugging react-native applications in Facebook documentations:

Source Show
◀ Wstecz