Skip to content

ResultsLoader does not work!!! #95

Closed
@hauph

Description

@hauph

I added component ResultsLoader to my app.

const InitialLoaderComponent = () => {
    return <div>Loading...</div>
}

<ResultsLoader renderElement={InitialLoaderComponent}/>

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:

Uncaught Error: ResultsLoader(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null.

Even if I removed prop renderElement and just use <ResultsLoader />, it still showed the same error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions