score:0

add a validation before render

// sample 1

      if(array.isarray(refno) && refno.length){ 
        //your code
       }

//sample 2

      {array.isarray(refno) && refno.length? customrenderfunction(): null}

score:0

i have found the root cause for this case. its because i had a conflict with material ui node module. (makeeffect,useeffect)


Related Query

More Query from same tag