i really need help.
I'm confused about how should i manage my async API Calls and error handling using redux thunk middleware.
Option 1
Send essential info to redux thunk middleware (newJobInfo) and ALSO other functions to manage my component state (for example, disable submitting button while making api call)
Error handling: Inside redux thunk middleware using try { } catch { }
Option 2
Keep this functions inside my component and only send essential data to redux thunk middleware
Error handling: Remove try { } catch { } of redux thunk middleware (or keep it and throw new Error inside catch statement) and manage errors with .then() and .catch() inside my component.