You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import { useQuery, useConvexClient } from '$lib/client.svelte.js';
119
+
import { api } from '../convex/_generated/api.js';
120
+
121
+
const messages = useQuery(
122
+
api.messages.list,
123
+
() => args,
124
+
() => ({ initialData: data.messages })
125
+
);
126
+
</script>
127
+
```
128
+
129
+
Combining specifying `initialData` and either setting the `keepPreviousData` option to true or never modifying the arguments passed to a query should be enough to avoid ever seeing a loading state for a `useQuery()`.
130
+
90
131
### Deploying a Svelte App
91
132
92
133
In production build pipelines use the build command
0 commit comments