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.

loadOptions not properly typed anymore

See original GitHub issue
  • The argument inputValue provided to loadOptions is inferred with type any, instead of string (unless the second argument, callback, is also extracted) -> type overload seems to be broken.
  • The return value of loadOptions can be anything, no type error is ever reported.

See example: https://codesandbox.io/s/react-select-v5-ts-9sxmq

This worked prior to v5

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
Methuselah96commented, Feb 28, 2022

I made a PR to go back to the old type.

0reactions
Methuselah96commented, Feb 28, 2022

Scratch that, let me rethink the solution.

Read more comments on GitHub >

github_iconTop Results From Across the Web

React-Select Async loadOptions is not loading options properly
React Async Select loadoption sometimes fail to loads the option. This is a very strange phenomenon after couple of set of queries react ......
Read more >
React-Select Async loadOptions is not loading options properly
I mean there blank options loaded, no text value. yes you are right, is a synchronous method returning a string, i don't need...
Read more >
LOAD command - Db2 - IBM
The LOAD command loads data at the page level, bypasses trigger firing and logging, and delays constraint checking and index building until after...
Read more >
Create, load, or edit a query in Excel (Power Query)
Set query load options. You can load a Power Query: To a worksheet. In the Power Query Editor, select Home > Close &...
Read more >
Assembly-CSharp-Editor.csproj could not be loaded
The sln is not updated correctly and the -Editor.dll fails to create. One reason you possibly do not have a script there anymore...
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