New user constants (#260)
* update users * update * With constructed intro feed, only grab 20 random suggested users to avoid perf issues * Don't 'check for latest' in the feed with the suggestions feed * Show/hide the welcome banner on account change (close #257) --------- Co-authored-by: Jay Graber <arcalinea@gmail.com> Co-authored-by: Paul Frazee <pfrazee@gmail.com>
This commit is contained in:
parent
69d6774277
commit
d74ff9c219
5 changed files with 89 additions and 4 deletions
|
@ -78,11 +78,11 @@ export const Feed = observer(function Feed({
|
|||
// =
|
||||
|
||||
const checkWelcome = React.useCallback(async () => {
|
||||
if (showWelcomeBanner) {
|
||||
if (showWelcomeBanner && store.me.did) {
|
||||
await store.me.follows.fetchIfNeeded()
|
||||
setIsNewUser(store.me.follows.isEmpty)
|
||||
}
|
||||
}, [showWelcomeBanner, store.me.follows])
|
||||
}, [showWelcomeBanner, store.me.follows, store.me.did])
|
||||
React.useEffect(() => {
|
||||
checkWelcome()
|
||||
}, [checkWelcome])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue