userData so I need to fetch user before it. It's using that to hide or show menu items.profile which also needs user to be fetched before it. This component will also use the user to redirect server side if the user is not logged in. But also prefetches the profile state to provide it to a client side component which needs it to show the dataprofile state to show the data. So I prefetch it on the server side page.tsx componentconst user = await queryClient.fetchQuery({ would not provide it to the other server component, it will also not provide it to the client side component. Passing it down as a prop would also not work as I have children in the layout. await queryClient.prefetchQuery({ to make it available on the client but as I need the state on the server I can't use it. Therefore I need const user = await queryClient.fetchQuery({ but this would not make it available on the client side.https://x.com/tan_stack/status/2031128535470104577?s=20
dry-scarlet · 11h ago
https://x.com/powersync_/status/2010721010006552775?s=20
dry-scarlet · 2mo ago
You can now submit your website/app/project to http://TanStack.com 's new showcase and have it seen by the TanStack community! - Global showcase browser - Per-library filters - Category filters Submit here: https://tanstack.com/showcase/submit View all here: https://tanstack.com/showcase
dry-scarlet · 3mo ago