Skip to content

Commit

Permalink
chore(composables): made useCustomQuery composables deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
Frodigo committed Feb 16, 2022
1 parent 1aaed3d commit 5855c30
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/composables/src/composables/useCustomQuery/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ import {
} from '../../factories/useCustomQueryFactory';
import { FetchPolicy } from '../../types';

/**
* @deprecated Will be removed in 1.1.0 release
* @use @vue-storefront/magento-theme/composables/useApi instead
*/
export default useCustomQueryFactory({
query: async (context: Context, {
query,
Expand Down
4 changes: 4 additions & 0 deletions packages/composables/src/factories/useCustomQueryFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ import { PlatformApi } from '@vue-storefront/core/lib/src/types';
import { FetchPolicy } from '../types';
import { UseCustomQuery } from '../types/composables';

/**
* @deprecated Will be removed in 1.1.0 release
* @use @vue-storefront/magento-theme/composables/useApi instead
*/
export interface UseCustomQueryFactoryFactoryParams<QUERY_VARIABLES, QUERY_RETURN, API extends PlatformApi = any> extends FactoryParams<API> {
query: (context: Context, {
variables,
Expand Down

0 comments on commit 5855c30

Please sign in to comment.