KamoCRM

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

Fixkamo-internal
Expédié
28 septembre 2026 à 09:35 UTC
Auteur
Kamo
Commite
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.

Tous les changements

Comme ce que tu vois expédier ?

Tout cela arrive dans votre espace de travail par lui-même. Commencez sur le plan gratuit et relisez cette page dans un mois.

Commencez gratuitement pour toujoursPrix de visualisation