KamoCRM

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

Fixkamo-internal
Se descapó
28 de septiembre de 2026 a las 9:35 UTC
Autor
Kamo
Compromit
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.

Todos los cambios

Como lo que ves enviaste?

Todo llega a su espacio de trabajo por sí solo. Comience en el plan gratuito y lea esta página de nuevo en un mes.

Arranzar gratis para siempreVer Precios