import { Connect , connect as originalConnect } from 'react-redux' ; import { ProxyContext } from '../redux/contexts' ; import { toArgs } from '../utils/toArgs' ; export const connect = function ( ) { const args = toArgs < Parameters < Connect > > ( arguments ) ; ( args [ 3 ] ||= { } ) . context = ProxyContext ; return originalConnect . apply ( null , args ) ; } ;