You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 4, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 4, 2026. It is now read-only.
No try/catch around the hook: useObjectTranslation is provider-safe (optional context read + react-i18next global-instance fallback), and wrapping a hook call in try/catch violates rules-of-hooks — a throw after the hook ran would desync hook order on the next render (same fix as objectui#2595/#2596; this factory closure just escaped the static lint).
从注释可以看出这是一路抄下来的:ImportWizard 写着 "Mirrors the pattern in ObjectGrid.tsx",plugin-timeline 写着 "Mirrors the createSafeTranslationHook pattern used by plugin-detail / plugin-list"。
Locks the fallback semantics of the safe-translation hooks AFTER the try/catch-around-hook removal (rules-of-hooks, objectui#2595/feat(kanban): default lane field honours the ADR-0085 stageField role #2596 class): with no I18nProvider mounted, consumers must still get English defaults — via the testKey probe / per-key detection, not via a caught throw.
Activity
fix(hooks): stop calling translation hooks inside try/catch (#2879) (#…
feat(lint): run ESLint on PRs, and cover every package (#2923) (#2928)
docs(ci): 去掉 check-lint-coverage.mjs 头注里的 object-ui 规则点数,并把守卫扩到该文件 (o…