@timardex/cluemart-shared 1.3.84 → 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/index.cjs CHANGED
@@ -5739,18 +5739,22 @@ var useDeletePost = () => {
5739
5739
  // src/graphql/hooks/post/hooksQuery.ts
5740
5740
  var import_client62 = require("@apollo/client");
5741
5741
  var useGetPosts = () => {
5742
- const { data, loading, error, refetch } = (0, import_client62.useQuery)(GET_POSTS);
5742
+ const { data, loading, error, refetch } = (0, import_client62.useQuery)(GET_POSTS, {
5743
+ fetchPolicy: "network-only"
5744
+ });
5743
5745
  return { error, loading, posts: data?.posts || [], refetch };
5744
5746
  };
5745
5747
  var useGetPost = (_id) => {
5746
5748
  const { data, loading, error, refetch } = (0, import_client62.useQuery)(GET_POST, {
5749
+ fetchPolicy: "network-only",
5747
5750
  skip: !_id,
5748
5751
  variables: { _id }
5749
5752
  });
5750
- return { error, loading, post: data?.post || null, refetch };
5753
+ return { error, loading, post: data?.post, refetch };
5751
5754
  };
5752
5755
  var useGetPostsByType = (postType) => {
5753
5756
  const { data, loading, error, refetch } = (0, import_client62.useQuery)(GET_POSTS_BY_TYPE, {
5757
+ fetchPolicy: "network-only",
5754
5758
  skip: !postType,
5755
5759
  variables: { postType }
5756
5760
  });