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

Question

How to trace error in react native in reflux?

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

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) {
    this.setCurrentUser(user);
  },

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

  getCurrentUser() {
    return currentUser;
  },

Why is it happening?(

Answers
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:
https://facebook.github.io/react-native/docs/debugging.html

Source Show
◀ Wstecz