Skip to content

@vue-storefront/multistore@4.1.0

Compare
Choose a tag to compare
@github-actions github-actions released this 11 Jun 09:15
· 41 commits to main since this release
9b728bc

Minor Changes

  • [ADDED] Support for asynchronous fetchConfiguration() and cacheManagerFactory's get() / set() methods.
import { createMultistoreExtension } from "@vue-storefront/multistore";

export const multistoreExtension = createMultistoreExtension({
- fetchConfiguration: () => ({
+ fetchConfiguration: async () => ({ ... }),
  mergeConfigurations: () => ({ ... }),
  cacheManagerFactory: () => ({
-   get(key) { ... },
+   async get(key) { ... },
-   set(key, value) { ... },
+   async set(key, value) { ... },
  }),
});