-
Notifications
You must be signed in to change notification settings - Fork 41
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
ResultsLoader does not work!!! #95
Comments
Ping @zzacharo |
Hey @hauph can you please provide some more detailed description on how you used the Let's take the example described in one of our demo applications: Here the So coming back to your example I see that you are using the component without passing any child component. You need to use this component as: const InitialLoaderComponent = () => {
return <div>Loading...</div>
}
<ResultsLoader renderElement={InitialLoaderComponent}>
<MyResultsComponent />
</ResultsLoader> To summarise, I would like to say that this module is not officially released and maybe some things in the documentation are missing or they are not well done. Your feedback is much appreciated! I created an issue #97 to track this. Let me know if you have any other question. Also I would encourage you to check our demos and how we use these components in practice! |
Thank you for your reply. |
I added component ResultsLoader to my app.
The document is very confused, to be honest. It is written that the ResultsLoader component only has one prop, which is renderElement to override the default rendered component. However, my code did not work. It kept saying that:
Even if I removed prop renderElement and just use
<ResultsLoader />
, it still showed the same errorThe text was updated successfully, but these errors were encountered: