KamoCRM

Render the dev machine menu hook in a real root, and cover the cloud session row

Fixkamo-internal
已装运
2026年9月28日 09:35 UTC
作者
Kamo
提交
de1b9b4

devMachineSections.test.tsx called useDevMachineSections() bare, outside any render. It worked while useTranslations (mocked) was the hook's only React dependency; the cloud-session row (af879443f) added usecoderRepositories, which holds state and reads the nav layout context, and all 19 tests failed with "Cannot read properties of null (reading 'useContext')". The hook is now hosted by a probe component in a react-dom root, re-rendered on every read so a changed standing model is what the next read sees. The stale child list gains newCloudSession, and three tests pin the cloud row: no request without a dev machine, the machine's repositories listed and the session started from the one picked, and a disabled status row when there are none.

所有更改

就像你看到的运输?

所有东西都是靠自己运入你的工作空间的 从免费计划开始,一个月后再读这页.

永远开始自由查看定价