Files
spacedrive/crates/sync/example/web/src/test.ts
T
Oscar BeaumontandUtku Bakir 2571e3b275 Upgrade rspc TS (#775)
* finally

* should be working?

* fix types

* fix types

* Wouldn't it be nice if Metro would just work

* idk

* try harder Metro

* potentially fix bundling issues

* idk, maybe fix it?

* fix metro

* update podfile.lock

* bruh

* bruhz

* tailwind is drunk again

---------

Co-authored-by: Utku Bakir <74243531+utkubakir@users.noreply.github.com>
2023-05-04 06:21:42 +00:00

48 lines
1.3 KiB
TypeScript

// import { queryClient, rspcClient } from './utils/rspc';
// function test(fn: () => Promise<void>) {
// return async () => {
// await fn();
// queryClient.invalidateQueries();
// };
// }
// const wait = (ms: number) => new Promise((res) => setTimeout(res, ms));
// export const tests = {
// three: {
// name: 'Three',
// run: test(async () => {
// const [db1, db2, db3] = await Promise.all([
// rspcClient.mutation(['createDatabase', ' ']),
// rspcClient.mutation(['createDatabase', ' ']),
// rspcClient.mutation(['createDatabase', ' '])
// ]);
// const dbs = await rspcClient.query(['dbs', 'cringe']);
// for (const db of dbs) {
// await rspcClient.mutation(['file_path.create', db]);
// }
// for (const db of dbs) {
// await rspcClient.mutation(['pullOperations', db]);
// }
// await rspcClient.mutation(['file_path.create', dbs[0]]);
// await rspcClient.mutation(['file_path.create', dbs[0]]);
// for (const db of dbs) {
// await rspcClient.mutation(['pullOperations', db]);
// }
// await rspcClient.mutation(['pullOperations', dbs[1]]);
// await rspcClient.mutation(['pullOperations', dbs[1]]);
// await rspcClient.mutation(['pullOperations', dbs[1]]);
// await rspcClient.mutation(['pullOperations', dbs[1]]);
// })
// }
// };
export {};