umwd-components 0.1.688 → 0.1.690

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "umwd-components",
3
- "version": "0.1.688",
3
+ "version": "0.1.690",
4
4
  "description": "UMWD Component library",
5
5
  "main": "dist/src/index.js",
6
6
  "module": "dist/src/index.js",
@@ -3,11 +3,12 @@
3
3
  import qs from "qs";
4
4
  import { fetchData } from "../loaders";
5
5
  import { getStrapiURL } from "../../../lib/utils";
6
+ import { unstable_noStore as noStore } from "next/cache";
6
7
 
7
8
  const baseUrl = getStrapiURL();
8
9
 
9
10
  async function getShop(currentPage: number) {
10
- //noStore();
11
+ noStore();
11
12
 
12
13
  const PAGE_SIZE = 4;
13
14
 
@@ -1,15 +1,20 @@
1
1
  import qs from "qs";
2
2
  import { fetchData } from "../loaders";
3
3
  import { getStrapiURL } from "../../../lib/utils";
4
+ //import { noStore } from "next/cache";
5
+ import { unstable_noStore as noStore } from "next/cache";
4
6
 
5
7
  const baseUrl = getStrapiURL();
6
8
 
7
9
  export async function getSingleCategory(slug: string) {
8
- // noStore();
10
+ noStore();
9
11
 
10
12
  const url = new URL(`/api/slugify/slugs/product-category/${slug}`, baseUrl);
11
13
 
12
14
  url.search = qs.stringify({
15
+ filters: {
16
+ is_archive: false,
17
+ },
13
18
  populate: {
14
19
  products: {
15
20
  populate: {
@@ -13,6 +13,9 @@ async function getSingleProduct(slug: string) {
13
13
  const url = new URL(`/api/slugify/slugs/product/${slug}`, baseUrl);
14
14
 
15
15
  url.search = qs.stringify({
16
+ filters: {
17
+ is_archive: false,
18
+ },
16
19
  populate: {
17
20
  price: true,
18
21
  image: true,