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:
arcalinea 2023-03-03 13:37:17 -08:00 committed by GitHub
parent 69d6774277
commit d74ff9c219
5 changed files with 89 additions and 4 deletions

View file

@ -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])