···2 import { onMount } from 'svelte';
3 import { Client, simpleFetchHandler } from '@atcute/client';
4 import type {} from '@atcute/atproto';
5- import { repoEntryTransform } from '@atcute/repo';
67 const { did, handle, pdsUrl, slowPokeMode } = $props();
8···65 if (!result.ok) {
66 throw new Error(`HTTP error! status: ${result.status}`);
67 }
68-69- const { readable, writable } = repoEntryTransform();
70- //Don't want to await so we can read as it streams
71- result.data.pipeTo(writable);
7273 try {
74 //This reads the repo as it is downloaded. which was very cool and I didn't know it would do that
75- for await (const entry of readable) {
76 // record here is the content of the atproto record
77 // console.log(entry.record);
78 let checkForCollection = collections.find(c => c.collection === entry.collection);
···90 loading = false;
91 } catch (err) {
92 stopTimer();
093 console.error('Error fetching repo stats:', err);
94 if (err instanceof Error) {
95 error = err.message;
···2 import { onMount } from 'svelte';
3 import { Client, simpleFetchHandler } from '@atcute/client';
4 import type {} from '@atcute/atproto';
5+ import { fromStream } from '@atcute/repo';
67 const { did, handle, pdsUrl, slowPokeMode } = $props();
8···65 if (!result.ok) {
66 throw new Error(`HTTP error! status: ${result.status}`);
67 }
68+ const repo = fromStream(result.data);
0006970 try {
71 //This reads the repo as it is downloaded. which was very cool and I didn't know it would do that
72+ for await (const entry of repo) {
73 // record here is the content of the atproto record
74 // console.log(entry.record);
75 let checkForCollection = collections.find(c => c.collection === entry.collection);
···87 loading = false;
88 } catch (err) {
89 stopTimer();
90+ console.log(err);
91 console.error('Error fetching repo stats:', err);
92 if (err instanceof Error) {
93 error = err.message;