2 ms·
FWIW my demo code looked like export let cache; function initCache() { cache = createCache(initCache); } initCache(); export functio
by danabramov 9y ago
FWIW my demo code looked like
export let cache;
function initCache() {
cache = createCache(initCache);
}
initCache();
export function createFetcher(fetch) {
const res = createResource(fetch);
return {
read(...args) {
return res(cache, ...args);
},
};
}
- deleted 9y ago[deleted]