@triplit/svelte 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +6 -0
- package/dist/index.svelte.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.svelte.js
CHANGED
@@ -4,7 +4,7 @@ export function useQuery(client, query, options) {
|
|
4
4
|
let isInitialFetch = $state(true);
|
5
5
|
let fetchingLocal = $state(false);
|
6
6
|
let fetchingRemote = $state(client.syncEngine.connectionStatus !== 'CLOSED');
|
7
|
-
let fetching = $derived(isInitialFetch && fetchingRemote);
|
7
|
+
let fetching = $derived(fetchingLocal || (isInitialFetch && fetchingRemote));
|
8
8
|
let error = $state(undefined);
|
9
9
|
let hasResponseFromServer = false;
|
10
10
|
let builtQuery = $state(query && query.build());
|