Use tanstack for caching of events

This commit is contained in:
Roman Krček
2025-07-12 21:25:04 +02:00
parent 5a09b50e82
commit 308e70941f
8 changed files with 281 additions and 318 deletions

9
src/lib/helpers.ts Normal file
View File

@@ -0,0 +1,9 @@
export const reactiveQueryArgs = <T>(cb: () => T) => {
const store = writable<T>();
$effect.pre(() => {
store.set(cb());
});
return store;
};