question-mark
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.

connect function bug ?

See original GitHub issue

What 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:closed
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
timdorrcommented, Dec 31, 2019

Ok, without any code to actually look through, I’m closing this for now.

1reaction
markeriksoncommented, Dec 6, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found