Question

Why AmplifyJS uses different storage types in the following two cases:

  1. For this online example AmplifyJS uses localStorage in IE11, so the saved value is visible on different tabs.
  2. But when I save the page and run it locally, AmplifyJS chooses a Memory storage. As result the stored value is 'underfined' when we try to retrieve it from other tabs.

I see the issue for IE11 only. Chrome and Firefox work fine.
Thank you.

Était-ce utile?

La solution

localStorage is not available for local files in IE, so it looks like Amplify.js is defaulting to the next available storage type: http://amplifyjs.com/api/store/

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top