Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我开始在 react native 中研究访问控制,因为我是 react native 的新手,任何人都可以建议我如何在 react native 中为客户端设计访问控制。
1 - 创建包含标志 {isLoggedIn:false} 的 auth reducer 2 - 当用户使用有效凭据提交表单时,通过调度操作将 isLoggedIn 设置为 true,例如 loginAction() 3 - 现在您可以通过以下方式检查用户是否已登录检查您的商店中的 isLoggedIn(即 redux 商店)