Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-redux

Package Overview
Dependencies
Maintainers
3
Versions
140
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-redux - npm Package Compare versions

Comparing version 7.2.6 to 7.2.7

6

es/components/connectAdvanced.js

@@ -132,10 +132,10 @@ import _extends from "@babel/runtime/helpers/esm/extends";

compute new props from state, props, and dispatch. For example:
export default connectAdvanced((dispatch, options) => (state, props) => ({
export default connectAdvanced((dispatch, options) => (state, props) => ({
thing: state.things[props.thingId],
saveThing: fields => dispatch(actionCreators.saveThing(props.thingId, fields)),
}))(YourComponent)
Access to dispatch is provided to the factory so selectorFactories can bind actionCreators
Access to dispatch is provided to the factory so selectorFactories can bind actionCreators
outside of their selector as an optimization. Options passed to connectAdvanced are passed to
the selectorFactory, along with displayName and WrappedComponent, as the second argument.
Note that selectorFactory is responsible for all caching/memoization of inbound and outbound
Note that selectorFactory is responsible for all caching/memoization of inbound and outbound
props. Do not use connectAdvanced directly without memoizing results between calls to your

@@ -142,0 +142,0 @@ selector, otherwise the Connect component will re-render on every state or props change.

@@ -0,0 +0,0 @@ import _extends from "@babel/runtime/helpers/esm/extends";

@@ -0,0 +0,0 @@ import { ReactReduxContext } from '../components/Context';

@@ -0,0 +0,0 @@ import { useContext } from 'react';

@@ -0,0 +0,0 @@ import { useReducer, useRef, useMemo, useContext, useDebugValue } from 'react';

@@ -0,0 +0,0 @@ import { useContext } from 'react';

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -149,10 +149,10 @@ "use strict";

compute new props from state, props, and dispatch. For example:
export default connectAdvanced((dispatch, options) => (state, props) => ({
export default connectAdvanced((dispatch, options) => (state, props) => ({
thing: state.things[props.thingId],
saveThing: fields => dispatch(actionCreators.saveThing(props.thingId, fields)),
}))(YourComponent)
Access to dispatch is provided to the factory so selectorFactories can bind actionCreators
Access to dispatch is provided to the factory so selectorFactories can bind actionCreators
outside of their selector as an optimization. Options passed to connectAdvanced are passed to
the selectorFactory, along with displayName and WrappedComponent, as the second argument.
Note that selectorFactory is responsible for all caching/memoization of inbound and outbound
Note that selectorFactory is responsible for all caching/memoization of inbound and outbound
props. Do not use connectAdvanced directly without memoizing results between calls to your

@@ -159,0 +159,0 @@ selector, otherwise the Connect component will re-render on every state or props change.

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ The MIT License (MIT)

{
"name": "react-redux",
"version": "7.2.6",
"version": "7.2.7",
"description": "Official React bindings for Redux",

@@ -39,3 +39,3 @@ "keywords": [

"peerDependencies": {
"react": "^16.8.3 || ^17"
"react": "^16.8.3 || ^17 || ^18"
},

@@ -42,0 +42,0 @@ "peerDependenciesMeta": {

@@ -0,0 +0,0 @@ # React Redux

@@ -0,0 +0,0 @@ export * from './exports'

@@ -0,0 +0,0 @@ import hoistStatics from 'hoist-non-react-statics'

@@ -0,0 +0,0 @@ import React from 'react'

@@ -0,0 +0,0 @@ import React, { useMemo } from 'react'

@@ -0,0 +0,0 @@ import connectAdvanced from '../components/connectAdvanced'

@@ -0,0 +0,0 @@ import bindActionCreators from '../utils/bindActionCreators'

@@ -0,0 +0,0 @@ import { wrapMapToPropsConstant, wrapMapToPropsFunc } from './wrapMapToProps'

@@ -0,0 +0,0 @@ import verifyPlainObject from '../utils/verifyPlainObject'

@@ -0,0 +0,0 @@ import verifySubselectors from './verifySubselectors'

@@ -0,0 +0,0 @@ import warning from '../utils/warning'

@@ -0,0 +0,0 @@ import verifyPlainObject from '../utils/verifyPlainObject'

@@ -0,0 +0,0 @@ import Provider from './components/Provider'

@@ -0,0 +0,0 @@ import { ReactReduxContext } from '../components/Context'

@@ -0,0 +0,0 @@ import { useContext } from 'react'

@@ -0,0 +0,0 @@ import { useReducer, useRef, useMemo, useContext, useDebugValue } from 'react'

@@ -0,0 +0,0 @@ import { useContext } from 'react'

@@ -0,0 +0,0 @@ export * from './exports'

@@ -0,0 +0,0 @@ // Default to a dummy "batch" implementation that just runs the callback

@@ -0,0 +0,0 @@ export default function bindActionCreators(actionCreators, dispatch) {

@@ -0,0 +0,0 @@ /**

/* eslint-disable import/no-unresolved */
export { unstable_batchedUpdates } from 'react-dom'

@@ -0,0 +0,0 @@ /* eslint-disable import/named */

@@ -0,0 +0,0 @@ function is(x, y) {

@@ -0,0 +0,0 @@ import { getBatch } from './batch'

@@ -0,0 +0,0 @@ import { useEffect, useLayoutEffect } from 'react'

@@ -0,0 +0,0 @@ import { useLayoutEffect } from 'react'

@@ -0,0 +0,0 @@ import isPlainObject from './isPlainObject'

@@ -0,0 +0,0 @@ /**

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc