-
Notifications
You must be signed in to change notification settings - Fork 430
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
TypeError: undefined is not an object (evaluating 'this._layouts[i].x') #234
Comments
Try out the beta version and see if you face the same issue |
I tried the beta version but to no avail. I'm still getting the same error. :( |
Debugging through the code, I found out the function where error occur, though I've not investigated how it can be fixed. In the layoutManager.js, we have the
Considering the case where the original list has 1000 items, the When the search string is '', the I am not sure how it can be fixed. |
@naqvitalha @sksin28 I am facing the same issue , did you find any solution for it? |
Can you share a repro on expo or, git so that I can quickly check this? |
@naqvitalha The issue is when you type '1' in search box, 'Item 1' appears in list. However, when you clear search box, instead of returning both 'Item 1' and 'Item 2', it throws an error. It would be great to find the root cause of the issue. Thanks. |
The issue has been resolved. The dataprovider was not passed correctly which I believe resulted in dataprovider and list not being in sync. So that no one else faces this issue, this is what my earlier code looked like-
After changing the dataprovider property, the code looks like-
@naqvitalha Thanks anyways. |
Hey @sksin28 |
I'm trying to implement search (as the user types in the search box) on the list. However, I'm getting the following error
TypeError: undefined is not an object (evaluating 'this._layouts[i].x')
.When the search string (value) is empty and the list is updated with all the elements, the error occurs. I also tried different conditions such as returning
originalList
when value is '', but it throws the same error as the list is updated with all the elements.This is my code-
Any help would be much appreciated.
The text was updated successfully, but these errors were encountered: