dengliming opened a new issue, #603:
URL: https://github.com/apache/shenyu-dashboard/issues/603

   ## Description
   Both models define `*reload(params, { put })` inside the `reducers` block 
instead of `effects`. dva invokes reducers synchronously as `reducer(state, 
action)`, so calling `put({ type: "reload", fetchValue })` from 
`add`/`update`/`delete`/`updateEn` does not run the generator body; it returns 
a Generator object which becomes the new model state. 
`pluginHandleList`/`shenyuDictList`/`total` all become `undefined` and the 
intended `fetch` is never dispatched.
   
   ## Location
   (Lines refer to `master @ 83969a5`.)
   - `src/models/pluginHandle.js:214-219`
   - `src/models/shenyuDict.js:166-171`
   - `src/routes/System/Dict/index.js:114` (`closeModal` only closes the modal 
and does not re-query, so the Dict page is visibly affected; PluginHandle is 
masked because its `closeModal` re-queries)
   
   ## Impact
   On `/config/dict`, adding, editing or deleting a dictionary shows a success 
toast but the table is not refreshed (and the store state for the model is 
briefly corrupted). Any future page that relies on the model `reload` will 
silently not refresh.
   
   ## Suggested fix
   Move both `*reload` generators into the `effects` block (as done in 
`src/models/auth.js`, `src/models/discovery.js`, etc.).
   
   ## Related existing
   None
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to