REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 2.09 KB
Close
/proc/thread-self/root/home/byroehnu/.trash/node_modules11/react-redux/src/connect/mergeProps.ts
Text
Base64
import type { Action, Dispatch } from 'redux' import verifyPlainObject from '../utils/verifyPlainObject' import { createInvalidArgFactory } from './invalidArgFactory' import type { MergeProps } from './selectorFactory' import type { EqualityFn } from '../types' export function defaultMergeProps< TStateProps, TDispatchProps, TOwnProps, TMergedProps >( stateProps: TStateProps, dispatchProps: TDispatchProps, ownProps: TOwnProps ): TMergedProps { // @ts-ignore return { ...ownProps, ...stateProps, ...dispatchProps } } export function wrapMergePropsFunc< TStateProps, TDispatchProps, TOwnProps, TMergedProps >( mergeProps: MergeProps<TStateProps, TDispatchProps, TOwnProps, TMergedProps> ): ( dispatch: Dispatch<Action<unknown>>, options: { readonly displayName: string readonly areMergedPropsEqual: EqualityFn<TMergedProps> } ) => MergeProps<TStateProps, TDispatchProps, TOwnProps, TMergedProps> { return function initMergePropsProxy( dispatch, { displayName, areMergedPropsEqual } ) { let hasRunOnce = false let mergedProps: TMergedProps return function mergePropsProxy( stateProps: TStateProps, dispatchProps: TDispatchProps, ownProps: TOwnProps ) { const nextMergedProps = mergeProps(stateProps, dispatchProps, ownProps) if (hasRunOnce) { if (!areMergedPropsEqual(nextMergedProps, mergedProps)) mergedProps = nextMergedProps } else { hasRunOnce = true mergedProps = nextMergedProps if (process.env.NODE_ENV !== 'production') verifyPlainObject(mergedProps, displayName, 'mergeProps') } return mergedProps } } } export function mergePropsFactory< TStateProps, TDispatchProps, TOwnProps, TMergedProps >( mergeProps?: MergeProps<TStateProps, TDispatchProps, TOwnProps, TMergedProps> ) { return !mergeProps ? () => defaultMergeProps : typeof mergeProps === 'function' ? wrapMergePropsFunc(mergeProps) : createInvalidArgFactory(mergeProps, 'mergeProps') }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 7
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
invalidArgFactory.ts
420 B
lrw-r--r--
2026-02-28 00:29:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
mapDispatchToProps.ts
1.04 KB
lrw-r--r--
2026-02-28 00:29:54
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
mapStateToProps.ts
623 B
lrw-r--r--
2026-02-28 00:29:54
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
mergeProps.ts
2.09 KB
lrw-r--r--
2026-02-28 00:29:58
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
selectorFactory.ts
7.74 KB
lrw-r--r--
2026-02-28 00:29:58
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
verifySubselectors.ts
801 B
lrw-r--r--
2026-02-28 00:30:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
wrapMapToProps.ts
3.95 KB
lrw-r--r--
2026-02-28 00:30:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).