@ventlio/tanstack-query 0.5.11 → 0.5.12
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { QueryClient } from '@tanstack/react-query';
|
|
2
2
|
import 'url-search-params-polyfill';
|
|
3
3
|
import type { BootstrapConfig } from '../types';
|
|
4
|
-
export declare const bootstrapQueryRequest: (queryClient: QueryClient, options
|
|
4
|
+
export declare const bootstrapQueryRequest: (queryClient: QueryClient, options?: BootstrapConfig) => Promise<void>;
|
package/dist/index.mjs
CHANGED
|
@@ -700,7 +700,7 @@ const bootStore = new Store({
|
|
|
700
700
|
modelConfig: undefined,
|
|
701
701
|
});
|
|
702
702
|
|
|
703
|
-
const bootstrapQueryRequest = async (queryClient, options) => {
|
|
703
|
+
const bootstrapQueryRequest = async (queryClient, options = {}) => {
|
|
704
704
|
// set default query config
|
|
705
705
|
await queryClient.resumePausedMutations();
|
|
706
706
|
bootStore.setState(() => options);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import 'url-search-params-polyfill';
|
|
2
2
|
import { bootStore } from './bootStore.js';
|
|
3
3
|
|
|
4
|
-
const bootstrapQueryRequest = async (queryClient, options) => {
|
|
4
|
+
const bootstrapQueryRequest = async (queryClient, options = {}) => {
|
|
5
5
|
// set default query config
|
|
6
6
|
await queryClient.resumePausedMutations();
|
|
7
7
|
bootStore.setState(() => options);
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@ import 'url-search-params-polyfill';
|
|
|
3
3
|
import type { BootstrapConfig } from '../types';
|
|
4
4
|
import { bootStore } from './bootStore';
|
|
5
5
|
|
|
6
|
-
export const bootstrapQueryRequest = async (queryClient: QueryClient, options: BootstrapConfig): Promise<void> => {
|
|
6
|
+
export const bootstrapQueryRequest = async (queryClient: QueryClient, options: BootstrapConfig = {}): Promise<void> => {
|
|
7
7
|
// set default query config
|
|
8
8
|
await queryClient.resumePausedMutations();
|
|
9
9
|
|