-
Notifications
You must be signed in to change notification settings - Fork 8
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
</AppDataProvider> | ||
</AppContextProvider> | ||
<AppDataProvider value={appData}> | ||
<AppProvider> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
有没有觉得 AppProvider 插在这里看着有点语义不太明确,不知道是做什么的。其他的 AppDataProvider、 AppContextProvider 对比起来,一看就知道是提供了 app 的 data 和 context
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AppProvider -> AppRuntimeProvider
d32f714
</AppContextProvider> | ||
<AppDataProvider value={appData}> | ||
<AppRuntimeProvider> | ||
<AppContextProvider value={appContext}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个顺序建议调整为 Context > Data > Runtime
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
runClientApp 中路由切换时候要把 appContext 的值更新到最新的
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Close #607