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.

How to disable autoload for async options in version 1.0.0-beta5?

See original GitHub issue

our application is currently using the newest version, and found the autoload option is not working now. We want to disable autoload when react-select initialize. We hope the async loadOptions will only be called when user have input some text on the input.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:8

github_iconTop GitHub Comments

4reactions
dmk23commented, May 26, 2016

I tested this solution and it appears to be missing a very important case.

I’d like to be able to async-load the default options without forcing user to type any input - but do that only if the user actually interacts with the widgets, e.g. by clicking the dropdown.

However with minimumInput == 0 the load is triggered immediately (even if user does not interact with select), while with minimumInput > 0 when the user clicks the dropdown - it shows nothing

4reactions
fortybillioncommented, Feb 18, 2016

Looks like this prop changed. From CHANGES.md:

`autoload` changed to `minimumInput` and now controls the minimum input to load options
Read more comments on GitHub >

github_iconTop Results From Across the Web

react-select - UNPKG
You can use a `disabled` property to indicate whether the option is disabled ... 206, autoload | bool | whether to auto-load the...
Read more >
react-select - npm
A Select control built with and for ReactJS. Latest version: 5.4.0, last published: 3 months ago. Start using react-select in your project by...
Read more >
Automatic-reload - Clipper Card
How do I cancel Autoload?
Read more >
SQLAlchemy Documentation - Read the Docs
5.6.10 how do I use ON DELETE CASCADE with SA's ORM? ... SQLAlchemy Documentation, Release 1.0.12 ... A good choice for loading a...
Read more >
Untitled
_baseassign.spec async-some-1.0.2.tgz nodejs-async-some.spec nodejs-spdx.spec ... rubygem-sdoc-version-option-fix.patch rubygem-sdoc.spec sdoc-0.4.1.gem ...
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