dvajs / dva

🌱 React and redux based, lightweight and elm-style framework. (Inspired by elm and choo)
https://dvajs.com/
MIT License
16.24k stars 3.17k forks source link

ui 重用共用一个model #2367

Closed hujialianghuwei closed 3 years ago

hujialianghuwei commented 4 years ago

问题如下: 从商品列表进入到详情A(详情里面也有相似商品列表),详情A又进入到详情B,他们共用一个model,当页面返回的时候详情A的数据 还是详情B的 。这种情况怎么解决?

EEETA commented 4 years ago

返回的时候可重新请求页面数据覆盖或者区分Astore,Bstore,因为如果存在B->C->D->B->A这种非固定顺序,我觉得每次请求是最妥当的

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.