maxlemieux / quokka

Project 3 "Quokka"
MIT License
0 stars 2 forks source link

searchResult issue #38

Closed AndyJChen24 closed 4 years ago

AndyJChen24 commented 4 years ago

The hook searchResult is being used in multiple function and being updated everywhere. When user type in a plant and pressed the button, this changed the searchResult state from being the name of the plant to being all the plants that came back from the api call. This result in the view not being updated but the state already changed so when user press the button again it will come back blank.