~ knotless Search/
↑↓ move↵ open⇧↵ all results

grain.social/grain

photography-focused photo sharing platform

grain.social
1 collaborator
0
2
10 lines · 382 B Raw History
import { browser } from "$app/environment";
import { groupsQuery } from "$lib/queries";
import type { PageLoad } from "./$types";

export const load: PageLoad = async ({ parent, fetch }) => {
  const { queryClient, viewer } = await parent();
  const prefetch = queryClient.prefetchQuery(groupsQuery(undefined, fetch));
  if (!browser) await prefetch;
  return { full: !viewer };
};