Skip to content
This repository has been archived by the owner on Nov 11, 2023. It is now read-only.

Triple change of the state in the useGet #149

Closed
stereobooster opened this issue Sep 18, 2019 · 1 comment
Closed

Triple change of the state in the useGet #149

stereobooster opened this issue Sep 18, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@stereobooster
Copy link
Contributor

stereobooster commented Sep 18, 2019

Describe the bug

There is a bug in restful-react, it sets state thrice after changing input values:

  • "not loading" with previous data
  • then "loading" state
  • then "not loading" with new data

To Reproduce

To be done

Expected behavior

I would expect change of the state twice:

  • "loading" state
  • then "not loading" with new data

Screenshots
N/A

Desktop (please complete the following information):

  • OS: MacOS
  • Browser chrome
  • Version Version 76.0.3809.100 (Official Build) (64-bit)

Smartphone (please complete the following information):
N/A

Additional context
N/A

@stereobooster stereobooster changed the title Triple change of the state in useGet Triple change of the state in the useGet Sep 18, 2019
@stereobooster stereobooster added the bug Something isn't working label Sep 18, 2019
@TejasQ
Copy link
Contributor

TejasQ commented Oct 28, 2019

@fabien0102 please triage this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants