Page MenuHomePhabricator

D5555.id18197.diff
No OneTemporary

D5555.id18197.diff

diff --git a/native/data/sqlite-context-provider.js b/native/data/sqlite-context-provider.js
--- a/native/data/sqlite-context-provider.js
+++ b/native/data/sqlite-context-provider.js
@@ -31,11 +31,18 @@
const cookie = useSelector(state => state.cookie);
const urlPrefix = useSelector(state => state.urlPrefix);
const staffCanSee = useStaffCanSee();
+ const currentLoggedInUserID: ?string = useSelector(state =>
+ state.currentUserInfo?.anonymous ? undefined : state.currentUserInfo?.id,
+ );
React.useEffect(() => {
if (storeLoaded || !rehydrateConcluded) {
return;
}
+ if (!currentLoggedInUserID) {
+ setStoreLoaded(true);
+ return;
+ }
(async () => {
try {
const [threads, messages] = await Promise.all([
@@ -86,6 +93,7 @@
}
})();
}, [
+ currentLoggedInUserID,
cookie,
dispatch,
rehydrateConcluded,

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 25, 7:43 AM (20 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2578950
Default Alt Text
D5555.id18197.diff (908 B)

Event Timeline