This differential ensures no action is dispatched to modify MessageStore or ThreadsStore, when user is logged out.
Details
Details
Build the app, log-out, kill the app and start it again with flipper. Ensure no MessageStore or ThreadsStore action is dispatched.
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Branch
- marcin/eng-2130
- Lint
No Lint Coverage - Unit
No Test Coverage
Event Timeline
Comment Actions
native/data/sqlite-context-provider.js | ||
---|---|---|
34–36 | I think we should use isLoggedIn here. It also checks dataLoaded, which is important to make sure this immediately responds to a user log out or account deletion. currentUserInfo might take a while to update (waits for server to provide the new one), but dataLoaded updates immediately. | |
42 | We don't need to look at the whole userID... since we're only checking if the user is logged in or not, we can pass in a boolean, which will avoid recomputation in the hypothetical case of userID changing from one truthy string to another truthy string |