connect function bug ?
See original GitHub issueWhat is the current behavior?
i make a Modal,alert:
function alert(options = {}) {
const div = document.createElement('div')
div.id = 'modal_' + _uid++
document.body.appendChild(div)
if (!store) return
return ReactDOM.render(
<Provider store={store}>
<Modal {...options}/>
</Provider>
, div)
}
useage is :
Modal.alert({
content: <ComponentX />
})
// ComponentX
class ComponentX extends Components{
render(){
let {title} = this.props
return <div>{title}</div>
}
}
export default connect(state=> state.title)(ComponentX);
my ComponentX inner use connect(state)。
in react-redux 7.1.0 is ok, bug react-redux 7.1.3 is not ok, error is follow:
Error: Minified React error #321; visit https://reactjs.org/docs/error-decoder.html?invariant=321 for the full message or use the non-minified dev environment for full errors and additional helpful warnings. at Object.da (react-dom.production.min.js:3592)
it likes a bug?
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
:Connect(function) Error - Scripting Support - DevForum | Roblox
So I have been working on my plugin and I got a error saying: and the code is basically: ! so I dont...
Read more >C++ connect function error - Invalid argument - Stack Overflow
I'm trying to make a simple socket client (using debian 6 and g++ compiler) and when I'm calling "connect" function, it returns error...
Read more >explain_connect(3): explain connect errors - Linux man page
The explain_connect function is used to obtain an explanation of an error returned by the connect(2) system call. The least the message will...
Read more >Troubleshoot Lambda function failures in Amazon Connect
Verify that your Lambda function's resource-based policy grants Amazon Connect permission to invoke the function ... 1. If you haven't done so ...
Read more >connect function (winsock2.h) - Win32 apps - Microsoft Learn
If no error occurs, connect returns zero. Otherwise, it returns SOCKET_ERROR, and a specific error code can be retrieved by calling ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Ok, without any code to actually look through, I’m closing this for now.
Please provide a CodeSandbox project that reproduces the issue.
Also, if you look at the error message, it says that React is having a problem using hooks. This usually occurs if you have more than one copy of React or React-Redux bundled into your application.