@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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @triplit/svelte
2
2
 
3
+ ## 0.1.10
4
+
5
+ ### Patch Changes
6
+
7
+ - 368a0fb: have fetching depend on fetchingLocal
8
+
3
9
  ## 0.1.9
4
10
 
5
11
  ### Patch Changes
@@ -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());
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@triplit/svelte",
3
3
  "packageManager": "yarn@3.4.1",
4
- "version": "0.1.9",
4
+ "version": "0.1.10",
5
5
  "source": "./src/index.svelte.ts",
6
6
  "main": "./dist/index.svelte.js",
7
7
  "module": "./dist/index.svelte.js",