You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of calling the GitHub REST API for each individual library, investigate a way to call one GraphQL API to get all of the data at once. Would probably help speed up the initial load of the page especially on local development. On prod the API calls get cached for a long time so that might not matter as much.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Instead of calling the GitHub REST API for each individual library, investigate a way to call one GraphQL API to get all of the data at once. Would probably help speed up the initial load of the page especially on local development. On prod the API calls get cached for a long time so that might not matter as much.
GQL (from SO)
Variables
I think the global ids are required for the GQL above to work. More details: https://docs.github.com/en/graphql/guides/migrating-graphql-global-node-ids.
One open question is how to deal with the global id (it could be required in
libraries.json
?), but unfortunately they aren't super easily found.Beta Was this translation helpful? Give feedback.
All reactions