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.

Be able to pass any kind of array to the Search component

See original GitHub issue

Steps

results = [ {id: 1, title: 'title1', description: 'desc', bandName: 'maiden', genre: 'heavy metal'}, {id: 1, title: 'title1', description: 'desc', bandName: 'maiden', genre: 'heavy metal'} ]; <Search loading={isLoading} onSearchChange={this.handleSearchChange} results={results} value={value} resultRenderer={this.resultRenderer} />

Expected Result

This should not show any warnings

Actual Result

Displays this warning: Warning: Failed prop type: Invalid prop resultssupplied toSearch.

Version

0.68.3

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
layershiftercommented, May 31, 2017

It looks that this issue can be solved by simplifying of prop’s validator, but it needs more attention.

0reactions
lednhatkhanhcommented, Jan 14, 2018

Any solutions for this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Passing array into URLSearchParams while consuming http ...
Going through the Angular documentation for URLSearchParams, I dint find any documentation on passing array as an parameter.
Read more >
Arrays - Visual Basic | Microsoft Learn
By using an array, you can refer to these related values by the same name, and use a number that's called an index...
Read more >
Arrays - Learn web development | MDN
In the final article of this module, we'll look at arrays — a neat way of storing a list of data items under...
Read more >
Arrays in C++
An array is a collection of elements of the same type placed in contiguous memory locations that can be individually referenced by using...
Read more >
5. Working with Arrays and Loops - JavaScript Cookbook [Book]
A for loop can be used to access every element of an array. The array begins at zero, and the array property length...
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