Skip to content

Commit 1ad20b2

Browse files
authored
fix(cache): use named import when exporting from aws-amplify (#10305)
1 parent 59c3452 commit 1ad20b2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/aws-amplify/src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313

1414
import { Amplify, ServiceWorker } from '@aws-amplify/core';
1515
import { Auth } from '@aws-amplify/auth';
16-
import Cache from '@aws-amplify/cache';
16+
import { BrowserStorageCache } from '@aws-amplify/cache';
1717

1818
/** Always importing Auth when users import Amplify such that
1919
for unauthenticated access (no sign in and sign up),
2020
users don't have to import Auth explicitly **/
2121
Amplify.Auth = Auth;
22-
Amplify.Cache = Cache;
22+
Amplify.Cache = BrowserStorageCache;
2323
Amplify.ServiceWorker = ServiceWorker;
2424

2525
export {
@@ -42,7 +42,7 @@ export {
4242
syncExpression,
4343
} from '@aws-amplify/datastore';
4444
export { PubSub } from '@aws-amplify/pubsub';
45-
export { default as Cache } from '@aws-amplify/cache';
45+
export { BrowserStorageCache as Cache } from '@aws-amplify/cache';
4646
export { Interactions } from '@aws-amplify/interactions';
4747
export * from '@aws-amplify/ui';
4848
export { XR } from '@aws-amplify/xr';

0 commit comments

Comments
 (0)