-
Notifications
You must be signed in to change notification settings - Fork 42
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
Cannot read property 'displayName' of undefined #4
Comments
The code shared still has some leftover pieces from where it was originally pasted. Does the following work instead?
It's looking for |
i changed that now onto the next line
throws error |
i am trying to cleanup the code but i still cant understand out |
Give the latest revision a try, for your component you will need a static function called |
Still the same error itemComponent returns undefined.
btw did you forgot to change component to itemComponent or is it supposed to be that way?? |
Yeah sorry, this was copy pasted when I wrote the article. The implementation I used at the time had much more custom logic. Give the latest revision a shot 👍 |
i am halfway through.. and shouldn't there be a way to disable infiniteload? |
You can disable it by removing the code that handles the checking or firing. I believe you can also specify |
Hey layout engine is working fine now but the items keep disappearing from the page it happens sometime on scroll and almost always on window resize i don't have infiniteLoading just finite set items. |
i removed the |
Please provide a REPL or example app where the issue is occurring and I will take a look 👍 |
I am new to REACT. I can't understand, how the MyMasoneryItems are instantiated. I do have to provide an array of objects of this type, or any other type that implements that specification, right? How do I technically do that? Many greetings in advance from Berlin! |
@matthiaskaemi there is an example in the file Link |
@artndes9 yes I saw the Example, but: const myArrayOfItems = [{ name: 'Hello' }, { name: 'World' }] how do I fill this array with reasonable Items...? |
@matthiaskaemi you can use whatever properties you like so long as they fit the shape of the props expected by Side note: this issue has run it's course. Folks please feel free to open a separate issue |
i am getting undefined error on itemComponent.
the code from view.jsx
if you can explain
MyMasonryItem
class it would be really helpful right nowThe text was updated successfully, but these errors were encountered: