DEV Community

Discussion on: use-spinner - Show loading spinners for your asynchronous calls

Collapse
devtalhaakbar profile image
Muhammad Talha Akbar

Nice. However, my other concerns aside, you are using appending the spinner on every useSpinner call. You might need to send multiple requests at the same time which will append multiple spinners. Perhaps, you append the spinner at the creation already and then just toggle show class?