Replies: 2 comments 1 reply
-
只能使用 valtio 这种吗 |
Beta Was this translation helpful? Give feedback.
1 reply
-
2024年回答,其实可以在getInitialState时候把initialState放到window上,umijs也不会像nextjs那么复杂,所以拦截器肯定是可以获取到window的,避免又引入一个valtio增大体积
拦截器中使用 测试过有效 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
我想在 requestInterceptors 请求头内添加一个参数,值从initialState获取,这里不在组件内无无法使用useModel,请问有什么其他方式获取吗?
Beta Was this translation helpful? Give feedback.
All reactions