3 ms·
An entire class fetch requests will go away with importable gets. I am excited for this
by no_wizard 1y ago
An entire class fetch requests will go away with importable gets. I am excited for this
- porridgeraisin 1y agoIn node you could always require("food.json")
- no_wizard 1y agoNot what I am talking about though. I’m talking about in place of a fetch call, you could simply import a json response from an endpoint, there by bypassing the need to call fetch, and you’ll get the response as if it’s imported. It won’t replace all GET calls certainly but I can think of quite a few first load ones that can simply be import statements once this happens
- porridgeraisin 1y agoOhh right. That makes sense.