Skip to content

Can't set customLoading equal true again after get request api #23

@datnguyenute

Description

@datnguyenute

Describe the bug
When i using customLoading to set status for pre-loading with request api, i can't set customLoading equals TRUE again with another request.

Expected behavior
Can setting customLoading and preloader is display again with each request

Code
In my render function
<h1>My app</h1>
<Lines customLoading={this.state.loading} />
<button onClick={() => this.setState({ loading: true })}>Another Request</button>
<h3>{this.state.loading ? 'true' : 'false' } </h3>
When i change state by click button "Another Request", state has change, but my preloader not reset customLoading and have no display preloader

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions