mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-04-19 14:08:45 -04:00
* prototype * `.normalise` helper + only `String` keys * implement it for 'search.paths' * redux devtools * fix * refactor backend * wip: upgrade to rspc fork * mega cursed * Upgrade Specta-related stuff * Upgrade Typescript * Cache debug page * bruh * Fix optimistic library setting * Cache clearing * better timeout * Fix tags page * bit of cleanup --------- Co-authored-by: Brendan Allan <brendonovich@outlook.com>
14 lines
329 B
TypeScript
14 lines
329 B
TypeScript
import { snapshot } from 'valtio';
|
|
import { useNormalisedCache } from '@sd/client';
|
|
|
|
export function Component() {
|
|
const cache = useNormalisedCache();
|
|
const data = snapshot(cache['#cache']);
|
|
return (
|
|
<div className="p-4">
|
|
<h1>Cache Debug</h1>
|
|
<pre className="pt-4">{JSON.stringify(data, null, 2)}</pre>
|
|
</div>
|
|
);
|
|
}
|