Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repeat data-loads from /api/v1/artist/... for single page #1727

Open
joeyAghion opened this issue Aug 16, 2017 · 1 comment
Open

Repeat data-loads from /api/v1/artist/... for single page #1727

joeyAghion opened this issue Aug 16, 2017 · 1 comment

Comments

@joeyAghion
Copy link
Contributor

Loading a single artist page (such as /artist/lynn-chadwick) results in repeat loads of the artist's API data (so, e.g., 2 requests to /api/v1/artist/lynn-chadwick?).

I'm not sure if these are from the server and client-side, or perhaps from the server and separately via Metaphysics, but ideally the load could happen just once and shared/bootstrapped as necessary for other client contexts.

@sweir27
Copy link
Contributor

sweir27 commented Mar 12, 2018

Determined that this is indeed from server-side and client-side.

Client-side, we actually don't re-fetch information about the artist, but because our fetches for things like "related artists" and "related shows" comes via the artist schema in metaphysics, metaphysics first fetches the artist in order to grab the ID to pass along through to future requests.

I'm not sure if there's a better way to circumvent this fetch only in the case where you're looking at these subfields, but I suspect not? In any case, this is likely to be cached on metaphysics'-side so hopefully doesn't consistently request this endpoint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants