© 2026 Hedgehog Software, LLC
export function useSession() { const currentPortfolioId = useCookie<number | undefined>('currentPortfolio', { maxAge: 60 * 60 * 24 * 14 }); return { currentPortfolioId } }
const {currentPortfolioId} = useSession(); const {data: portfolioData} = useAPI<PortfolioInfo>(`/api/portfolio/${currentPortfolioId.value}`, { server: false, watch: [currentPortfolioId] });
Join the Discord to ask follow-up questions and connect with the community
Nuxt Community Chat Server
31,632 Members