Skip to content
Myr

policy.ts

This file

Path

apps/web/src/client/policy.ts

14 lines · 506 bytes · TypeScript

Last changed by

Merge build/comments-web-rest into mainoscabrielbefore adoption0eb1248

History of this file

Take it

Merge build/comments-web-rest into mainoscabrielbefore adoption0eb1248

line 1why, one step back
1// Keyed by the project too: when the watch's stream fails at connect, its poll changes only the project's keys.

Merge branch 'build/907-project-people-page'oscabrielbefore adoption3c231ba

lines 2–14why, one step back
2import type { ProjectName } from "@repo/protocol/ids";
3import { Atom } from "effect/reactivity";45import { ContractsClient } from "../surfaces.ts";6import { keys } from "./keys.ts";78export const policyAtom = Atom.family((project: ProjectName) =>9 ContractsClient.query(10 "projectPolicy",11 { project },12 { reactivityKeys: [...keys.policy(project), ...keys.project(project)] }13 )14);