@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.
@@ -3386,11 +3386,14 @@ var useDeletePost = () => {
3386
3386
  // src/graphql/hooks/post/hooksQuery.ts
3387
3387
  var import_client62 = require("@apollo/client");
3388
3388
  var useGetPosts = () => {
3389
- const { data, loading, error, refetch } = (0, import_client62.useQuery)(GET_POSTS);
3389
+ const { data, loading, error, refetch } = (0, import_client62.useQuery)(GET_POSTS, {
3390
+ fetchPolicy: "network-only"
3391
+ });
3390
3392
  return { error, loading, posts: data?.posts || [], refetch };
3391
3393
  };
3392
3394
  var useGetPost = (_id) => {
3393
3395
  const { data, loading, error, refetch } = (0, import_client62.useQuery)(GET_POST, {
3396
+ fetchPolicy: "network-only",
3394
3397
  skip: !_id,
3395
3398
  variables: { _id }
3396
3399
  });
@@ -3398,6 +3401,7 @@ var useGetPost = (_id) => {
3398
3401
  };
3399
3402
  var useGetPostsByType = (postType) => {
3400
3403
  const { data, loading, error, refetch } = (0, import_client62.useQuery)(GET_POSTS_BY_TYPE, {
3404
+ fetchPolicy: "network-only",
3401
3405
  skip: !postType,
3402
3406
  variables: { postType }
3403
3407
  });