News for hackers. Stuff that matters.
Re:Beyond React 16 by Dan Ambramov – Async Rendering and Rea... by danabramov on Thursday March 01, 2018 @03:45PM (#16496133)
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);
        },
      };
    }

There are no comments on this comment yet.