Hi everyone I want to override some reducer functionality in client in some part I needed to add PaginationUtils to keep some similar functionality of original reducer but I couldn’t do that because of this error:
Module '"@com.mgmtp.a12.client/client-core/lib/extensions/relationship/internal/paginationUtils"' has no exported member 'PaginationUtils'.
and also it is not exported from
@com.mgmtp.a12.client\client-core\lib\extensions\relationship\index
and not here but in some other areas I also had problem importing some other modules as well
so my question is that is it even possible to use these files or I shouldn’t use them and if it’s possible how can I do that?
btw I’m new in both A12 and react topics
(also I had problem with original issue with overriding reducer)
the reducer I want to ovverride is one of RelationshipReducers.dataReducers reducers
so am I allowed to override them actually or not?
specifically I want to change the functionality of setCandidate reducer:
reduce(dataHolders, action) {
return RelationshipActions.Commands.setCandidates.match(action)
? dataHolders?.map(dh =>
Relationship.CandidateDataHolder.isInstanceById(action.payload.instanceId)(dh)
? handleSetCandidates(dh, action.payload)
: dh
)
: dataHolders;
}