refactor: rewrite parameters of RQ hooks

This commit is contained in:
Rıdvan Akca
2024-03-14 13:54:51 +03:00
parent ba9d3afc88
commit 75df7d6413
6 changed files with 25 additions and 19 deletions

View File

@@ -2,7 +2,7 @@ import { useQuery } from '@tanstack/react-query';
import api from 'helpers/api';
export default function useTriggerSubsteps(appKey, triggerKey) {
export default function useTriggerSubsteps({ appKey, triggerKey }) {
const query = useQuery({
queryKey: ['triggerSubsteps', appKey, triggerKey],
queryFn: async ({ signal }) => {