in src/Cache.client.js [23:35]
export function useServerResponse(location) {
const key = JSON.stringify(location);
const cache = unstable_getCacheForType(createResponseCache);
let response = cache.get(key);
if (response) {
return response;
}
response = createFromFetch(
fetch('/react?location=' + encodeURIComponent(key))
);
cache.set(key, response);
return response;
}