You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
子应用只有在qiankun对应的生命周期中才能获取父应用的state或props,可qiankun的生命周期方法既不是函数式组件也不是hook,这就导致子应用的函数式组件中无法获取父应用的登录状态。(父子应用都是CRA)
我的困惑是在父子组件都是react+ts的函数式组件中,子应用该如何获取到父应用的状态然后转变为子应用的全局状态(子应用全局状态管理使用zustand)
Beta Was this translation helpful? Give feedback.
All reactions