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.

Is using connect from react-redux is supported? I seem to be always getting undefined when using connect

import { connect } from 'react-redux';
import SomeComponent from './SomeComponent';

// state is undefined ?
const mapStateToProps = (state) => ({
  state,
});

export default connect(mapStateToProps, null)(SomeComponent);

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jostephcommented, Jul 26, 2021

This is not an issue with redux-in-worker part, sorry for opening an issue before doing deep-diving into the problem.

Some of my helper files within the worker currently have import to store to non-worker file, causing unexpected result like infinite worker js request, etc.

I suggest for this to be clearly stated in the docs because it kinda breaks the library pattern.

0reactions
dai-shicommented, Jul 26, 2021

I didn’t know clearly about such a pitfall. Would you open a PR for your suggestion?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using Connect with Standard accounts | Stripe Documentation
Integrate with Standard accounts to get started using Connect right away, and let Stripe handle the majority of the user experience and user...
Read more >
Connect | React Redux
The connect() function connects a React component to a Redux store. It provides its connected component with the pieces of the data it...
Read more >
Sign In | Connect | McGraw Hill
Sign In | Sign In page.
Read more >
Connect Definition & Meaning - Merriam-Webster
1 · to become joined. The two rooms connect by a hallway. ideas that connect easily to form a theory ; 3 ·...
Read more >
Using CONNECT - General Information - MariaDB
The main characteristic of CONNECT is to enable accessing data scattered on a machine as if it was a centralized database. This, and...
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