for some reason the program is crash every time there is a value in the devicesKeys array: "Checkbox defines an invalid contextType" and also "Uncaught TypeError: Cannot read property 'indexOf' of undefined"
note: In my tests I made sure that "devicesKeys" array is never in an undefined state. it seems like a react context problem, but I don't know how to solve it.
this is the code: https://codesandbox.io/s/youthful-tharp-bmdw4?file=/src/App.js
The original Docs: https://ant.design/components/checkbox/#components-checkbox-demo-check-all