Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Reset "Recomputations" Count #26

Open
parties opened this issue Nov 2, 2018 · 2 comments
Open

Feature Request: Reset "Recomputations" Count #26

parties opened this issue Nov 2, 2018 · 2 comments
Milestone

Comments

@parties
Copy link

parties commented Nov 2, 2018

As a user, I want to be able to reset the Recomputations count so that I can see how many recomputations occurred for a particular action within my application.

Current behavior: the Recomputations field continues to grow in size as more and more interactions are triggered.


Note: I do not know if this will require a change to the Reselect Devtools extension or if this is an internal mechanic that is managed by reselect-tools itself (it may be both). If the case is the latter, this issue can be moved to the reselect-tools repo instead.

@skortchmark9
Copy link
Owner

Good idea! I totally understand why this would be useful.

Each selector actually has a resetRecomputations() function, so this is doable. I agree it would be nice to have a button in the dev tools to do this. I'll mark it as an enhancement for 0.0.8

In the meantime, it ought to be possible to do this yourself.

import * as selectors from './selectors.js'

Object.values(selectors).forEach((selector) => selector.resetRecomputations());

@skortchmark9 skortchmark9 transferred this issue from skortchmark9/reselect-devtools-extension Aug 6, 2019
@skortchmark9
Copy link
Owner

Combining the library / extension repos on #24. Thanks!

@skortchmark9 skortchmark9 added this to the 0.0.8 milestone Aug 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants