ts4nfdi / terminology-service-suite

The SemLookP Widgets project is a collection of interactive widgets designed to ease the integration of terminology service functions into third-party applications.
https://ts4nfdi.github.io/terminology-service-suite/comp/latest/
MIT License
12 stars 2 forks source link

useQuery: Reduce amount of retries #67

Open VincentKneip opened 3 months ago

VincentKneip commented 3 months ago

The default amount of retries the useQuery-hook executes are 3, and all of our widgets are using these default 3 retries. Whenever a nonexistent/error-prone URL is queried by useQuery, these 3 retries lead to pretty long loading times, which won't lead to anything.

Therefore, I suggest lowering the amount of retries to 2 or 1 to reduce the time a loading spinner is displayed.