我正在尝试使用钩子在我的react应用程序中实现登录。我使用api钩子来调用useEffect来获取凭据。收到凭据后,我在上下文中更新状态。但看起来状态并没有更新。我做错了什么?http://localhost:3292/ExamService.svc/getuser/'+ user +'/'+ pass;
我正在使用react-native + redux + immutable构建一个安卓应用程序/src -/actions (where I haveaction types and actions) -/api (I'm not sure if I'm doing this right)
好的,我有一个动作,我需要像