fix: prevented 'no message' screen on first narrow load#5639
fix: prevented 'no message' screen on first narrow load#5639anshuman-8 wants to merge 1 commit intozulip:mainfrom
Conversation
|
Thanks, @anshuman-8! I think this new logic will make the app behave closer to correctly, but I wonder if (It's already kind of a confusing name, because it might be true just because I haven't yet thought of a better name; perhaps @gnprice has some ideas on that point and on the following things I noticed while looking at the surrounding code 🙂:
(Greg please don't feel like you have to settle all those questions before we make progress on #5152.) |
|
Ah, and another thing I noticed: when we resolve this TODO on // TODO: We may still briefly show NoMessages; this render will have
// isFetching false, even though the fetch effect will cause a rerender
// with isFetching true. It'd be nice to avoid that. |
Fixed #5152
Fixed the issue by adding
nothingKnown(if narrow data is not loaded) as a factor inisFetchingto decide if to show the loading placeholder, preventing “No Message” screen.