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.

select() doesn't seem to work properly with reselect

See original GitHub issue
const dogSelector = createSelector(
  dogsSelector,
  dogIdSelector,
  (dogs, dogId) => {
    // this only gets fired once, not twice.
    console.log('dogs', dogId);
    return dogs.get(dogId);
  }  
)

// In the saga...
const dogs = [1,2,3];
for (let dogId of dogs) {
    let dog = yield select(dogSelector, {params: {dogId}});
}

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
npbeecommented, Jun 8, 2016

@adjohu, I use reselect and redux-saga together in this way and it seems to work ok, so perhaps there’s an error elsewhere? Here’s a quick fiddle: https://jsfiddle.net/npbee/bsvh7mgw/

0reactions
cal0610commented, May 10, 2018

@adjohu are you using immutable js here?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Materialize CSS - Select Doesn't Seem to Render
The solution that worked for me is by calling the 'material_select' function after the options data has been loaded.
Read more >
Excel Data Validation Tips and Troubleshooting - Contextures
This page has data validation tips, and shows how to fix Excel data validation problems, such as drop down not working, blank selected, ......
Read more >
A device driver is not installed or a hardware device does not ...
If the device is installed but still does not seem to be functioning correctly, go to the "Next steps" section. Step 3: Use...
Read more >
IntelliSense in Visual Studio Code
Pressing Tab or Enter will insert the selected member. You can trigger IntelliSense in any editor window by typing Ctrl+Space or by typing...
Read more >
How to enable JavaScript in your browser and why
Toggle the "javascript.enabled" preference (right-click and select "Toggle" or double-click the preference) to change the value from "false" to "true ...
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