Skip to content

Commit efc2648

Browse files
fix(frontend): Temporary disable EXT collections loading (#10591)
# Motivation The EXT collections loading is slowing down the app a lot (good catch @DenysKarmazynDFINITY !!!). So, while we investigate, we remove it from the current release.
1 parent 90b3882 commit efc2648

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/frontend/src/lib/components/loaders/LoaderCollections.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
}
5959
};
6060
61+
// eslint-disable-next-line @typescript-eslint/no-unused-vars -- we will re-enable in the next release
6162
const loadExtTokens = async ({ identity, customTokens }: LoadTokensParams) => {
6263
const extEnabledCustomToken = customTokens.reduce<CanisterIdText[]>(
6364
(acc, { token, enabled }) =>
@@ -123,7 +124,7 @@
123124
customTokens
124125
};
125126
126-
await Promise.all([loadErcTokens(params), loadExtTokens(params)]);
127+
await Promise.all([loadErcTokens(params)]);
127128
};
128129
</script>
129130

src/frontend/src/tests/lib/components/loaders/LoaderCollections.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ describe('LoaderCollections', () => {
104104
});
105105
});
106106

107-
it('should add new EXT collections', async () => {
107+
it.skip('should add new EXT collections', async () => {
108108
extGetTokensByOwnerSpy.mockResolvedValueOnce([1, 2, 3]);
109109

110110
render(LoaderCollections);
@@ -149,7 +149,7 @@ describe('LoaderCollections', () => {
149149
});
150150
});
151151

152-
it('should not add EXT collections if there are no new collections', async () => {
152+
it.skip('should not add EXT collections if there are no new collections', async () => {
153153
extGetTokensByOwnerSpy.mockResolvedValueOnce([]);
154154

155155
render(LoaderCollections);
@@ -218,7 +218,7 @@ describe('LoaderCollections', () => {
218218
});
219219
});
220220

221-
it('should not add existing EXT collections', async () => {
221+
it.skip('should not add existing EXT collections', async () => {
222222
const existingExtCustomToken: CustomToken = {
223223
token: {
224224
ExtV2: {
@@ -251,7 +251,7 @@ describe('LoaderCollections', () => {
251251
});
252252
});
253253

254-
it('should handle EXT error gracefully', async () => {
254+
it.skip('should handle EXT error gracefully', async () => {
255255
const mockError = new Error('EXT error');
256256
extGetTokensByOwnerSpy.mockRejectedValueOnce(mockError);
257257

0 commit comments

Comments
 (0)