component-state
Skill5.2k starsChanged 9 days agoApache-2.0View on GitHub
Guides state management, component logic, and hook composition in CloudBeaver React components. Use when creating, changing, reviewing, or extracting component behavior, state, or hooks.
Trending
Steady talk.about the whole repository
Who's talking about dbeaver/cloudbeaver
- dbeaver/dbeaver“Export in Parquet”GitHub · Nov 30, 2022 · 41 reactions
- runtipi/runtipi-appstore“[APP REQUEST] CloudBeaver”GitHub · Sep 10, 2022 · 4 reactions
- A Hacker News story“CloudBeaver: Cloud Database Manager”Hacker News · Aug 19, 2024 · 3 points
- A Hacker News story“CloudBeaver”Hacker News · Oct 19, 2020 · 3 points
- @andyjarrett.com“github.com/dbeaver/clou... DBeaver in the cloud ... a security nightmare but could be handy too :D”Bluesky · Nov 26, 2025 · 2 likes
The biggest 5 of 50 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 50
Talked about on GitHub, Hacker News and Bluesky (50 times).
On GitHub · 45
- Nov 30, 2022Export in Parquet — dbeaver/dbeaver41 reactions · 23 comments
- Sep 10, 2022[APP REQUEST] CloudBeaver — runtipi/runtipi-appstore4 reactions
- Oct 29, 2026dbeaver/pro#11365 Redesign experimental bundles activation — dbeaver/dbeaver1 reaction · 4 comments
- Oct 26, 2026dbeaver/pro#10822 Add user UI settings API — dbeaver/dbeaver0 reactions · 1 comment
- Oct 13, 2026dbeaver/pro#10570 Support subscription auth for Grok — dbeaver/dbeaver0 reactions · 1 comment
40 more on GitHub
- Oct 2, 2026dbeaver/pro#10819 Generate AI profile copy identity in model — dbeaver/dbeaver0 reactions · 1 comment
- Sep 24, 2026dbeaver/pro#10659 Add OpenAI subscription API — dbeaver/dbeaver0 reactions · 1 comment
- Sep 22, 2026dbeaver/dbeaver-devops#2929 use internal product versions — dbeaver/dbvr0 reactions
- Sep 22, 2026dbeaver/dbeaver-devops#2929 use internal desktop versions — dbeaver/dbeaver0 reactions · 1 comment
- Sep 14, 2026dbeaver/cloudbeaver#4650 Update Spring Boot dependencies (#343) — dbeaver/dbeaver-common0 reactions · 1 comment
- Sep 3, 2026dbeaver/pro#7068 moves skills to .agents directory — dbeaver/dbeaver0 reactions · 1 comment
- Sep 2, 2026chore: update Terraform versions to latest — mucsi96/p070 reactions
- Aug 26, 2026chore: update Terraform versions to latest — mucsi96/p070 reactions
- Aug 26, 2026Deploy CloudBeaver as a Tailscale-only PostgreSQL GUI — gwkline/homelab0 reactions · 2 comments
- Aug 12, 2026chore: update Terraform versions to latest — mucsi96/p070 reactions
- Aug 5, 2026chore: update Terraform versions to latest — mucsi96/p070 reactions
- Jul 23, 2026dbeaver/cloudbeaver#4438 Remove mysql comments — dbeaver/dbeaver0 reactions · 1 comment
- Jul 23, 2026dbeaver/pro#4490 bump postgres version — dbeaver/dbeaver0 reactions · 1 comment
- Jul 22, 2026chore: update Terraform versions to latest — mucsi96/p070 reactions
- Jul 15, 2026chore: update Terraform versions to latest — mucsi96/p070 reactions
- Jul 8, 2026chore: update Terraform versions to latest — mucsi96/p070 reactions
- Jun 8, 2026Build separate SSMS-style SQL Practice Ground — gaganpasupuleti/learn-coding-through0 reactions
- May 30, 2026The Docker image for `zxdong262/electerm-web` should support uploading files from the host machine — electerm/electerm-web-docker0 reactions · 4 comments
- May 28, 2026Update repo table — arran4/arran40 reactions
- Apr 8, 2026dbeaver/cloudbeaver#4235 fix connection props for db2i — dbeaver/dbeaver0 reactions
- Feb 4, 2026dbeaver/cloudbeaver#3833 Remove mandatory backup database for community — dbeaver/dbeaver0 reactions
- Jan 14, 2026ww — jamsw666/w-repo0 reactions
- Sep 23, 2025Error: [vite] (client) Pre-transform error: [sass] [sass] [sass] spawn EBADF — vitejs/vite0 reactions · 1 comment
- Sep 15, 2025请求添加cloudbeaver镜像白名单 — DaoCloud/public-image-mirror0 reactions · 1 comment
- May 28, 2025why i can not find idea-workspace-cloudbeaver? — gongziyayu/gumoxiang_posts0 reactions
- May 21, 2025fix: pom in vulnerabilities — databendlabs/databend-jdbc0 reactions
- May 8, 2025dbeaver/cloudbeaver#3174 remove from frontend — dbeaver/dbeaver0 reactions
- Feb 13, 2025SQL工作台缺失OceanBase MySQL的数据源 — actiontech/dms0 reactions · 1 comment
- Jan 15, 2025Add cloudbeaver and/or myphpadmin service — BurnySc2/monorepo0 reactions
- Jan 8, 2025[feat] 통합 DB 관리 GUI 툴 적용 — Kernel360/F2-BAGUNI0 reactions · 1 comment
- May 27, 2024Install a cloud database management tool — opendatahub-io-contrib/datamesh-platform0 reactions · 1 comment
- Jan 8, 2024feature: support accessing database like MySQL in Casvisor web UI — casdoor/awesome-auth0 reactions · 1 comment
- Nov 29, 2023Question: passing X-Forwarded-Email from upstream to service — oauth2-proxy/oauth2-proxy0 reactions · 7 comments
- Sep 28, 2022Oracle database connection error: — dbeaver/dbeaver0 reactions · 7 comments
- Apr 12, 2022Feature #1 manage users in postgreSQL — marcellodesales/mesh-bitcoin-transactions0 reactions
- Sep 14, 2021Incorrect localization name — dbeaver/dbeaver0 reactions · 3 comments
- Feb 15, 2021Changes in sun.security.x509.AlgorithmId in JDK 15 — dbeaver/dbeaver0 reactions · 23 comments
- Jan 22, 2021ERD, Types Builder, Schema — iteria-app/lowcode0 reactions
- Jun 1, 2020[Request] Cloudbeaver — A75G/docker-templates0 reactions
- Apr 25, 2020Add CloudBeaver as a service, possibly replacing Adminer — TrivadisPF/platys-modern-data-platform0 reactions
On Hacker News · 3
- Aug 19, 2024CloudBeaver: Cloud Database Manager3 points
- Oct 19, 2020CloudBeaver3 points
- May 22, 2020CloudBeaver from DBeaver – Self Hosted Web Based Database Manager1 point
On Bluesky · 2
- Nov 26, 2025github.com/dbeaver/clou... DBeaver in the cloud ... a security nightmare but could be handy too :D — @andyjarrett.com2 likes and reposts
- Oct 13, 2025☁️ CloudBeaver — versi web dari DBeaver untuk manajemen database online! 🔧 Akses DB melalui browser dengan UI yang familiar ✅ Mendukung… — @its-me-rhk.bsky.social2 likes and reposts
In this repository6 other files it gives its agents.
- AGENTS.mdAGENTS.md
- cloudbeaver-form-partsSkill
- cloudbeaver-frontend-testsSkill
- component-compositionSkill
- extend-at-seamsSkill
- pre-push-checksSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 2 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Keep components easy to read: call hooks, connect their results, render UI.
- Very specific: line 15
If a hook owns observable state, use useObservableRef from @cloudbeaver/core-blocks.
- Very specific: line 47
Read changing inputs through this and pass them in the third argument.
- Very specific: line 49
Keep editable local fields out of the update object: it overwrites local changes.
- Very specific: line 51
After await, wrap observable changes in runInAction.
- Very specific: line 52
Read observable fields inside an observer render or a tracked getter, not as snapshots destructured before that read.
- Distinctive: line 70
Keep hooks unconditional and at the top level.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Component state
Keep components easy to read: call hooks, connect their results, render UI.
- Move related state, derived values, and operations into a named hook. Several state fields, handlers, and effects for one task are a sign to extract it. A single local UI flag can stay.
- Extract complex logic into a separate hook even when it has no observable state. It can stay in the component when it is the component's direct responsibility and its only piece of logic.
- Give each hook one job. Do not move a large component into one equally large hook.
- If a hook owns observable state, use
useObservableReffrom@cloudbeaver/core-blocks. - Return the state object itself, with values and operations. Do not spread it into a new object or return snapshots of its observable fields.
useObservableRef
import { action, computed, observable } from 'mobx';
import { useObservableRef } from '@cloudbeaver/core-blocks';
function useSearchState(items: readonly string[]) {
return useObservableRef(
() => ({
query: '',
get filteredItems(): readonly string[] {
return this.items.filter(item => item.includes(this.query));
},
setQuery(query: string) {
this.query = query;
},
}),
{
query: observable.ref,
items: observable.ref,
filteredItems: computed,
setQuery: action.bound,
},
{ items },
);
}- Read changing inputs through
thisand pass them in the third argument. A closure in the factory can keep the first render's values. - Keep editable local fields out of the update object: it overwrites local changes. Pass
falsewhen there are no inputs to update; omitting the third argument reapplies values frominit. - After
await, wrap observable changes inrunInAction; an action does not cover the continuation. - Read observable fields inside an
observerrender or a tracked getter, not as snapshots destructured before that read. Otherwise MobX cannot track the source field.
Compose hooks
Pass one hook's result into the next. Keep the connection visible instead of copying values between independent states with effects. For example:
const source = useItemsSource(projectId);
const search = useItemsSearch(source);
const selection = useItemsSelection(search);The receiving hook reads the source object in its getters and operations. If that source can
be replaced, pass it through the third argument of useObservableRef. Do not copy its current
fields into a second state. This keeps one owner for each value and preserves reactivity.
Keep hooks unconditional and at the top level. If the wiring itself grows, extract a composing hook. A component coordinating several responsibilities should show the flow, not implement all their state transitions.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

