* Adds basic feature flag model * Create router.ts * WIP * WIP * WIP * WIP * Emails kill switch * Adds missing migrations * Type fix * Cleanup * Revert * Cleanup * Fixes migration * Update packages/features/flags/server/utils.ts Co-authored-by: sean-brydon <[email protected]> --------- Co-authored-by: Alex van Andel <[email protected]> Co-authored-by: Peer Richelsen <[email protected]> Co-authored-by: sean-brydon <[email protected]>
7 lines
179 B
TypeScript
7 lines
179 B
TypeScript
import { trpc } from "@calcom/trpc/react";
|
|
|
|
export function useFlags() {
|
|
const query = trpc.viewer.features.map.useQuery(undefined, { initialData: {} });
|
|
return query.data;
|
|
}
|