We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 941cf4e commit 46e3fbdCopy full SHA for 46e3fbd
examples/quickstart-chat/src/App.tsx
@@ -92,14 +92,12 @@ function App() {
92
93
useEffect(() => {
94
const subscribeToQueries = (conn: DbConnection, queries: string[]) => {
95
- for (const query of queries) {
96
- conn
97
- ?.subscriptionBuilder()
98
- .onApplied(() => {
99
- console.log('SDK client cache initialized.');
100
- })
101
- .subscribe(query);
102
- }
+ conn
+ ?.subscriptionBuilder()
+ .onApplied(() => {
+ console.log('SDK client cache initialized.');
+ })
+ .subscribe(queries);
103
};
104
105
const onConnect = (
0 commit comments