@triplit/svelte 0.1.9 → 0.1.11

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @triplit/svelte
2
2
 
3
+ ## 0.1.11
4
+
5
+ ### Patch Changes
6
+
7
+ - @triplit/client@0.3.38
8
+
9
+ ## 0.1.10
10
+
11
+ ### Patch Changes
12
+
13
+ - 368a0fb: have fetching depend on fetchingLocal
14
+
3
15
  ## 0.1.9
4
16
 
5
17
  ### 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.11",
5
5
  "source": "./src/index.svelte.ts",
6
6
  "main": "./dist/index.svelte.js",
7
7
  "module": "./dist/index.svelte.js",
@@ -27,7 +27,7 @@
27
27
  "/dist"
28
28
  ],
29
29
  "dependencies": {
30
- "@triplit/client": "^0.3.37"
30
+ "@triplit/client": "^0.3.38"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@sveltejs/package": "^2.3.0",