Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Deprecating connectAdvanced

See original GitHub issue

I intend to remove the connectAdvanced API from React Redux, essentially replacing connect with its contents.

Why? It’s an abstraction that we don’t use ourselves, so it just becomes an indirection in the code. It is only minimally used in the community. It creates a more complex code base, which is a barrier to entry for many contributions. Plus, frankly, I just don’t like it; it gives me Java flashbacks.

This is mainly to give the few folks that do use it a heads up. It won’t go away until the next major release. However, I intend to add a deprecation warning at some point in the future. We’ll do that after Hooks, just so we’re not dropping two big changes in one minor release. Plus, you can lock to that version to have your Hooks and your connectAdvanced at the same time. Sound fair?

If there are specific use cases, we can see about migrating them into the connect API, most likely as options. This isn’t about completely throwing away a big chunk of functionality, just simplifying the code base a bit and making it easier to grok for everyone.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:24
  • Comments:25 (12 by maintainers)

github_iconTop GitHub Comments

gaearoncommented, Apr 12, 2019

👍 I could never understand what it does or why it was added. It sounds like if you need this kind of complexity you should just vendor the connect code and maintain it yourself.

jimbollacommented, Apr 15, 2019

I’m not using Redux so I don’t have an opinion on this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Mark Erikson on Twitter: "@mikewhy Are you saying you ...
Are you saying you actually do use `connectAdvanced`? If so, what's your use case? It's deprecated at this point, and we plan on...
Read more >
Troubleshooting | React Redux
I'm getting the following alert: Accessing PropTypes via the main React package is deprecated. Use the prop-types package from npm instead.#.
Read more >
React 18, React Redux 8, and TypeScript: What you need to ...
The old one, ReactDOM.render , is now deprecated. ... With the advent of Hooks, React Redux's connectAdvanced API became pretty much ...
Read more >
How to use the react-redux.connect function in react-redux
Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately. Enable here. github coderoad /...
Read more >
Upgrading to React-Redux v6: Around the New Context API
Other changes include deprecating directly passing store as props to connected components, deprecating multiple stores via storeKey ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found