KamoCRM

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

Fixkamo-internal
Verschifft
28. September 2026 um 09:35 UTC
Autor
Kamo
Ausschuss
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.

Alle Änderungen

Wie, was Sie sehen Versand?

Alles kommt in Ihrem Arbeitsbereich für sich. Starten Sie mit dem kostenlosen Plan und lesen Sie diese Seite in einem Monat wieder.

Free Forever startenPreisgestaltung anzeigen