Show global feed when logged out

This commit is contained in:
2023-01-02 11:59:03 +00:00
parent 503b0e0f7a
commit 8f824aaa63
4 changed files with 20 additions and 5 deletions

View File

@ -3,11 +3,12 @@ import { useSelector } from "react-redux";
import Note from "../element/Note";
import useTimelineFeed from "../feed/TimelineFeed";
import { NoteCreator } from "../element/NoteCreator";
import { useMemo } from "react";
export default function RootPage() {
const pubKey = useSelector(s => s.login.publicKey);
const follows = useSelector(a => a.login.follows);
const { notes } = useTimelineFeed(follows);
const [loggedOut, pubKey, follows] = useSelector(s => [s.login.loggedOut, s.login.publicKey, s.login.follows]);
const { notes } = useTimelineFeed(follows, loggedOut === true);
function followHints() {
if (follows?.length === 0 && pubKey) {