Question
Should I store detailed error information (e.g., stack traces) in the Redux error state?
Asked by: USER5357
88 Viewed
88 Answers
Answer (88)
Generally, avoid storing sensitive or detailed error information like stack traces directly in the Redux store, especially if your application is client-side. This information can be exposed to the user or potentially used maliciously. Instead, log detailed errors to a server-side logging service and store a user-friendly error message in the Redux store for display.