Added multi-threaded initial map and token loading

This commit is contained in:
Mitchell McCaffrey
2020-11-26 16:29:10 +11:00
parent 8160a98c49
commit aaa793ad71
7 changed files with 65 additions and 10 deletions

View File

@@ -53,6 +53,7 @@ function SelectMapModal({
resetMap,
updateMap,
updateMaps,
mapsLoading,
} = useContext(MapDataContext);
/**
@@ -388,7 +389,7 @@ function SelectMapModal({
</Button>
</Flex>
</ImageDrop>
{imageLoading && <LoadingOverlay bg="overlay" />}
{(imageLoading || mapsLoading) && <LoadingOverlay bg="overlay" />}
<EditMapModal
isOpen={isEditModalOpen}
onDone={() => setIsEditModalOpen(false)}