Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function withRPCReactor(
rpcId: string,
reducers: RPCReducersType,
{
propName,
transformParams,
mapStateToParams,
}: {
propName?: string,
transformParams?: (params: any) => any,
mapStateToParams?: (state: any, args?: any, ownProps: Props) => any,
} = {}
) {
return withRPCRedux(rpcId, {
actions: createRPCReactors(rpcId, reducers),
propName,
rpcId,
transformParams,
mapStateToParams,
});
}