fix: eager loading for nested topic

This commit is contained in:
Aslam H
2024-11-09 15:14:23 +07:00
parent 60846a4c42
commit 6475855e2f
5 changed files with 60 additions and 210 deletions

View File

@@ -7,8 +7,8 @@ import { Link } from "@tanstack/react-router"
import { getFeatureFlag } from "~/actions"
export const JournalSection: React.FC = () => {
const { me } = useAccount()
const journalEntries = me?.root?.journalEntries
const { me } = useAccount({ root: { journalEntries: [{}] } })
const journalEntries = me?.root.journalEntries
const [, setIsFetching] = useState(false)
const [isFeatureActive, setIsFeatureActive] = useState(false)