We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b198f26 commit 9706cc6Copy full SHA for 9706cc6
src/hooks/useSelector.js
@@ -35,7 +35,8 @@ function useSelectorWithStoreAndSubscription(
35
selectedState = latestSelectedState.current
36
}
37
} catch (err) {
38
- let errorMessage = `An error occurred while selecting the store state: ${err.message}.`
+ let errorMessage = `An error occurred while selecting the store state: `
39
+ errorMessage += err.stack ? `\n${err.stack}\n` : err.message
40
41
if (latestSubscriptionCallbackError.current) {
42
errorMessage += `\nThe error may be correlated with this previous error:\n${latestSubscriptionCallbackError.current.stack}\n\nOriginal stack trace:`
0 commit comments