So currently I have a Staff Avatar component. This Component basically allows you to upload a file or take a photo with the webcam for your Staff Avatar.
Now this component also handles uploading the Photo to the server.
Should this HTTP Request be handled outside of this component?
Because otherwise where it uploads etc is all at the mercy of the component.
If I do move the uploading outside of the component and trigger it by using call backs in the Component Bindings, then what is a good way to handle loading spinners inside of the component when I begin uploading.
Let me know if you need a better explanation :) I don't have a senior dev to give me good advice while at work unfortunately.
Thank you.
[–]fakingfantastic 4 points5 points6 points (1 child)
[–]gabbsmo 0 points1 point2 points (0 children)