Skip to main content

react

Load when wiring @pgxsinkit/react into a React app — createSyncClientHooks and the reactive read hooks (useLiveRows, useLiveRow, useLiveDrizzleRows, useLiveDrizzleRow) plus SyncClientProvider / useSyncClient. Teaches that live reads are event-driven off PGlite's live.query (they fire on commit, not on a poll), that useLiveDrizzleRows remaps snake_case columns back to the builder's field keys while raw useLiveRows returns underlying column names, the { rows, loading, error } contract (the Drizzle hooks add a hydrating flag that stays true until every referenced consistency group — eager or lazy — has caught up and delivered its rows, so empty is distinguishable from still-synchronizing), that authenticated lazy groups must be gated until claims exist (ordinary writes self-activate their group, so gate the write on auth rather than mounting an activator), and that writes go through client.tables.<t> (not the hooks) and flush on enqueue. Load before building React components that read or write synced data.

跳到安装

来源信息

仓库
pgxsinkit/pgxsinkit
最近来源活动
2026年8月24日 05:43
检测到的 SKILL.md 语言
英语
星标
4
分支
1

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。