This is an issue about the rules of hook and loops.
I\'ve got an array of Context ctxArray and a simple hook useCustomContext= (idx:number)=>use
ctxArray
useCustomContext= (idx:number)=>use