Submission Template Target Year Change Saga: API Request and State Update
The function `submissionReqTemplTargetYearChangeSage` is a generator function that listens for the `submissionTemplateTargetYearChange` action and handles it by making an API request and dispatching the `setSubmissionTemplateTargetYearChange` action with the response data. If an error occurs during the API request, it dispatches the `openModal` action with the error message.
原文地址: https://www.cveoy.top/t/topic/qEyd 著作权归作者所有。请勿转载和采集!