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

Relation Widget Makes API call for each instance #1357

Closed
hughrawlinson opened this issue May 14, 2018 · 4 comments
Closed

Relation Widget Makes API call for each instance #1357

hughrawlinson opened this issue May 14, 2018 · 4 comments

Comments

@hughrawlinson
Copy link

- Do you want to request a feature or report a bug?

A Bug

- What is the current behavior?

I have a config file that contains a list of relation widgets. The RelationControl component seems to be making an API request for each widget in the list, even though they're relating to the same collection. Because I have quite a long list, this is having a huge negative impact on page load time.

- If the current behavior is a bug, please provide the steps to reproduce.

Create a json file in your repository, and configure a collection with a list of elements using the relation widget. Relate to your collection of blog posts. Watch netlify load the document listing once for each widget.

- What is the expected behavior?

I'd expect netlify to cache the document listing so that page load doesn't take 30 seconds for loading the same data over and over again.

@erquhart
Copy link
Contributor

@hughrawlinson can you share a minimal reproduction case that can be cloned/forked? Or share the one you're encountering this issue with?

@hughrawlinson
Copy link
Author

I cant share the one I'm encountering the issue with, but I'll try and repro it with another site :)

@stale
Copy link

stale bot commented Oct 29, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the status: stale label Oct 29, 2019
@barthc
Copy link
Contributor

barthc commented May 6, 2020

Entries are now cached.

@barthc barthc closed this as completed May 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants