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

dva刷新整个state需求 #2377

Closed jzyzxx closed 4 years ago

jzyzxx commented 4 years ago

What happens?

onStatechange中拿到最新数据(类似这样:@@dva: 0 app: {title: "智能设计"} bridge: {title: "", currentBridge: null, bridges: Array(0)} menus: {title: "菜单", menus: Array(4)} project: {title: "智能设计", current: null, projects: Array(0)} refRoads: {refRoadlines: Array(0), currentRoad: null, roads: Array(0)} refSpans: {spans: Array(0)} routing: {location: null} workspace: {title: "智能设计"} proto: Object)缓存起来了,怎么在下次打开页面注入这些数据?有没有方便的api实现这个需求?

jzyzxx commented 4 years ago

已解决