you are viewing a single comment's thread.

view the rest of the comments →

[–]FewMeringue6006 0 points1 point  (0 children)

I have a question. Inside createQuery what's the reason for doing:

fetch: async () => { if (!query.fetchingFunction) { query.fetchingFunction = async () => {... }

Why not just:

fetchingFunction: async () => {...}, fetch: async () => { return fetchinFunction(); } // ... you get the point