Cannot perform 'get' on a proxy that has been revoked

92 Views Asked by At
export const bulkWatchPayload = (requestIds = [], currentView) => {
  const structuredData = requestIds.map(
    (requestId) => `ukca_${requestId}_${currentView}`
  )
  
  return {
    userId: getCurrentUserEmailId(),
    correlationId,
    entityType: `ukca-list-view-page`,
    entities: requestIds
  }
}
 socket.emit(
          SocketEvents.REPLACE_WATCH,
          bulkWatchPayload(e.data.requestIds, e.data.currentView)
        )

requestIds =[123,345,1231,3423] structuredData= ['ukca_123_mainPage','ukca_343_firstPage']

if i assign requestIds to entities working fine but if i assign structuredData to entities this error popping up 'Cannot perform 'get' on a proxy that has been revoked'

it should work if i assign structuredData to entities too

0

There are 0 best solutions below