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

Add support for scheduling reactions #101

Open
pavanpodila opened this issue Feb 8, 2019 · 2 comments
Open

Add support for scheduling reactions #101

pavanpodila opened this issue Feb 8, 2019 · 2 comments
Labels
enhancement New feature or request

Comments

@pavanpodila
Copy link
Member

This can be used in tools to slow down reactions for visualizations.

@pavanpodila pavanpodila added the enhancement New feature or request label Feb 8, 2019
@vadimtsushko
Copy link

I believe debounce operation is most universally expected with regards to reactions for visualizations (or for network related stuff). In angular_github_search example I have initially tried to use, delay parameter of autorun, but it seams rather delay operation, not waits for some period after interactions are completed (as debounce)
So I've ended up with Debouncer utility class.
You can compare these behaviors switching from makeStore to makeStoreWithMobxDelay here:

providers: [FactoryProvider(GithubStore, makeStore)],

@MisterJimson
Copy link
Contributor

Was looking into why the docs mentioned a debounce when it acts like a throttle instead, I guess @vadimtsushko ran into the same thing.

Will open an issue for correcting the docs and another for introducing a proper debounce.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants