Closed
Description
Reported in Reactiflux chat by user "Bahamut", who was not in a position to file a report himself.
Description:
There was a function being defined inside of a mapDispatch
function, like:
function mapDispatch(dispatch) {
return {
someFunction: () => dispatch({type : "SOME_ACTION", string : `some template literal`})
};
}
There was an error in the template literal, and that threw an error when the mapDispatch
function was checked by connectAdvanced()
at connectAdvanced.js#L15-25.
However, the error was swallowed by the try/catch
block there, and no visible error was reported in the console.
So, the important issue here appears to be that we have a try/catch
that swallows errors, and doesn't report them in any way.
Would it be a good idea to use the warning()
util to log errors here?
Metadata
Metadata
Assignees
Labels
No labels