@timardex/cluemart-shared 1.3.85 → 1.3.86
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/dist/graphql/index.cjs +5 -1
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.mjs +5 -1
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/index.cjs +5 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +5 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -5461,11 +5461,14 @@ var useDeletePost = () => {
|
|
|
5461
5461
|
// src/graphql/hooks/post/hooksQuery.ts
|
|
5462
5462
|
import { useQuery as useQuery12 } from "@apollo/client";
|
|
5463
5463
|
var useGetPosts = () => {
|
|
5464
|
-
const { data, loading, error, refetch } = useQuery12(GET_POSTS
|
|
5464
|
+
const { data, loading, error, refetch } = useQuery12(GET_POSTS, {
|
|
5465
|
+
fetchPolicy: "network-only"
|
|
5466
|
+
});
|
|
5465
5467
|
return { error, loading, posts: data?.posts || [], refetch };
|
|
5466
5468
|
};
|
|
5467
5469
|
var useGetPost = (_id) => {
|
|
5468
5470
|
const { data, loading, error, refetch } = useQuery12(GET_POST, {
|
|
5471
|
+
fetchPolicy: "network-only",
|
|
5469
5472
|
skip: !_id,
|
|
5470
5473
|
variables: { _id }
|
|
5471
5474
|
});
|
|
@@ -5473,6 +5476,7 @@ var useGetPost = (_id) => {
|
|
|
5473
5476
|
};
|
|
5474
5477
|
var useGetPostsByType = (postType) => {
|
|
5475
5478
|
const { data, loading, error, refetch } = useQuery12(GET_POSTS_BY_TYPE, {
|
|
5479
|
+
fetchPolicy: "network-only",
|
|
5476
5480
|
skip: !postType,
|
|
5477
5481
|
variables: { postType }
|
|
5478
5482
|
});
|