@timardex/cluemart-shared 1.3.23 → 1.3.24
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 -5
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +1 -1
- package/dist/graphql/index.d.ts +1 -1
- package/dist/graphql/index.mjs +5 -5
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/index.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +5 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/graphql/index.cjs
CHANGED
|
@@ -3087,8 +3087,8 @@ var GET_POSTS = import_client59.gql`
|
|
|
3087
3087
|
${POST_FIELDS_FRAGMENT}
|
|
3088
3088
|
`;
|
|
3089
3089
|
var GET_POST = import_client59.gql`
|
|
3090
|
-
query getPost($
|
|
3091
|
-
post(
|
|
3090
|
+
query getPost($_id: ID!) {
|
|
3091
|
+
post(_id: $_id) {
|
|
3092
3092
|
...PostFields
|
|
3093
3093
|
}
|
|
3094
3094
|
}
|
|
@@ -3155,10 +3155,10 @@ var useGetPosts = () => {
|
|
|
3155
3155
|
const { data, loading, error, refetch } = (0, import_client62.useQuery)(GET_POSTS);
|
|
3156
3156
|
return { error, loading, posts: data?.posts || [], refetch };
|
|
3157
3157
|
};
|
|
3158
|
-
var useGetPost = (
|
|
3158
|
+
var useGetPost = (_id) => {
|
|
3159
3159
|
const { data, loading, error, refetch } = (0, import_client62.useQuery)(GET_POST, {
|
|
3160
|
-
skip: !
|
|
3161
|
-
variables: {
|
|
3160
|
+
skip: !_id,
|
|
3161
|
+
variables: { _id }
|
|
3162
3162
|
});
|
|
3163
3163
|
return { error, loading, post: data?.post || null, refetch };
|
|
3164
3164
|
};
|