kotlin-hands-on / hands-on

Apache License 2.0
130 stars 176 forks source link

Update 05_Building_the_Frontend.md #154

Closed ericlentz closed 2 years ago

ericlentz commented 2 years ago

useEffect causes the page to constantly call getShoppingList(), infinitely. Instead, use useEffectOnce and it will only call it on load. All other calls are handled via the onSubmit, so no need to call it constantly.

SebastianAigner commented 2 years ago

Thank you for your contribution, @ericlentz! 🎉