Closed maxlemieux closed 4 years ago
Stretch goal.
If we add a [searchResults] parameter to the useEffect, it stops the endless loop (by only running the effect on initial render or when searchResults is updated).
However, the Get Suggestions button is kinda fun to click and I'm thinking we can leave it in the app for now.
The main feed needs to load automatically, ideally.
Right now it uses a button click to trigger loading.
Earlier attempts to auto-load triggered endless loops. This can probably be addressed by managing the contents of the list with state at a higher level.