This repository has been archived by the owner on Nov 17, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
状态管理方案 #395
Comments
Merged
TODO:
// src/app.ts
export const storeInitialStates = {};
|
讨论:切换页面再次进入原页面后是否需要重新初始化页面状态?用户对于重新初始化页面状态还是有诉求的:dvajs/dva#907 ICE 2 的默认行为是会重新初始化页面状态,用户可以通过配置关闭此行为。详见 不过主流的状态管理方案一般没有自动重置状态的行为(仅维护一个全局状态),需要用户手动添加 reset 逻辑 |
SPA 中, 我们把多个页面组合成一个 Application, 这个数据是 App 的数据,所以不应该清空状态。 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
No description provided.
The text was updated successfully, but these errors were encountered: