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

feat(live-preview): batches api requests #4315

Merged
merged 2 commits into from
Nov 29, 2023
Merged

Conversation

jacobsfletch
Copy link
Member

@jacobsfletch jacobsfletch commented Nov 29, 2023

Description

Significantly reduces the number total API requests made by Live Preview, originally discussed in #4281. Does so by batching requests together if they're of the same collection. This is a continuation of many other recent optimizations that have been made to Live Preview, including #4306. Another nice side-effect of this change is that arg drilling apiRoute, depth, and serverURL is no longer necessary. Partially closes #4169.

  • I have read and understand the CONTRIBUTING.md document in this repository.

Type of change

  • New feature (non-breaking change which adds functionality)

Checklist:

  • I have added tests that prove my fix is effective or that my feature works
  • Existing test suite passes locally with my changes

Sorry, something went wrong.

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

Successfully merging this pull request may close these issues.

@payloadcms/live-preview has multiple issues
1 participant