mirror of
https://github.com/linsa-io/linsa.git
synced 2026-04-26 18:28:35 +02:00
chore: preload nested deps
This commit is contained in:
@@ -17,7 +17,7 @@ export const openPopoverForIdAtom = atom<string | null>(null)
|
||||
|
||||
export function TopicDetailComponent() {
|
||||
const params = useParams({ from: "/_layout/_pages/(topic)/$" })
|
||||
const { me } = useAccountOrGuest({ root: { personalLinks: [] } })
|
||||
const { me } = useAccountOrGuest({ root: { personalLinks: [{}] } })
|
||||
|
||||
const topicID = React.useMemo(
|
||||
() =>
|
||||
|
||||
@@ -29,9 +29,9 @@ export const TopicDetailHeader = function TopicDetailHeader({
|
||||
const isMobile = useMedia("(max-width: 770px)")
|
||||
const { me } = useAccountOrGuest({
|
||||
root: {
|
||||
topicsWantToLearn: [],
|
||||
topicsLearning: [],
|
||||
topicsLearned: [],
|
||||
topicsWantToLearn: [{}],
|
||||
topicsLearning: [{}],
|
||||
topicsLearned: [{}],
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ export function TopicDetailList({
|
||||
activeIndex,
|
||||
setActiveIndex,
|
||||
}: TopicDetailListProps) {
|
||||
const { me } = useAccountOrGuest({ root: { personalLinks: [] } })
|
||||
const { me } = useAccountOrGuest({ root: { personalLinks: [{}] } })
|
||||
const personalLinks =
|
||||
!me || me._type === "Anonymous" ? undefined : me.root.personalLinks
|
||||
|
||||
|
||||
Reference in New Issue
Block a user