Email or username:

Password:

Forgot your password?
Top-level
diabhoil

@mariusor just tested with this const cachedFetch = (url) => { if(!dictionary[url]) { console.log("add to cache"); dictionary[url] = fetch(url); } else { console.log("just use from cache!"); } return dictionary[url]; } and it worked like expected when calling "await cachedFetch(url)"

1 comment
marius

@diabhoil then maybe I get tripped by some awaits I have in the code. Thank you.

Go Up