Skip to content

Commit

Permalink
monitorTanStackQueriesData updated
Browse files Browse the repository at this point in the history
  • Loading branch information
RNEvok committed Mar 23, 2024
1 parent db8608c commit 29da883
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ declare module '@appklaar/codebud' {
* @param {number} [batchingTimeMs = 500] Batching time of sending new TanStack queries data copy (in ms). Defaults to 500
* @returns {Function} Unsubscribe function.
*/
monitorTanStackQueriesData: (queryClient: any, updateInterval?: number, batchingTimeMs?: number) => (() => void),
monitorTanStackQueriesData: (queryClient: any, updateIntervalMs?: number, batchingTimeMs?: number) => (() => void),
/**
* Function that enables TanStack Query events monitor.
* @param {any} queryClient Your queryClient
Expand Down
4 changes: 2 additions & 2 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,12 +181,12 @@ export const CodeBud: ModuleInterface = {
}
},

monitorTanStackQueriesData(queryClient, updateInterval = 1000, batchingTimeMs = 500) {
monitorTanStackQueriesData(queryClient, updateIntervalMs = 1000, batchingTimeMs = 500) {
try {
if (!this._connector)
throw new Error(`Something went wrong while enabling TanStack queries data monitor. Double check that you initialized ${CONFIG.PRODUCT_NAME}`);

return this._connector.monitorTanStackQueriesData(queryClient, updateInterval, batchingTimeMs);
return this._connector.monitorTanStackQueriesData(queryClient, updateIntervalMs, batchingTimeMs);
} catch (e) {
if (this._mode === "dev")
codebudConsoleWarn(e);
Expand Down
2 changes: 1 addition & 1 deletion moduleInterface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export interface AppKlaarSdk {
* @param {number} [batchingTimeMs = 500] Batching time of sending new TanStack queries data copy (in ms). Defaults to 500
* @returns {Function} Unsubscribe function.
*/
monitorTanStackQueriesData: (queryClient: any, updateInterval?: number, batchingTimeMs?: number) => (() => void),
monitorTanStackQueriesData: (queryClient: any, updateIntervalMs?: number, batchingTimeMs?: number) => (() => void),
/**
* Function that enables TanStack Query events monitor.
* @param {any} queryClient Your queryClient
Expand Down

0 comments on commit 29da883

Please sign in to comment.