feat(ui): change autosave logic to send updates as soon as possible, improving live preview speed (#7201)

Now has a minimum animation time for the autosave but it fires off the
send events sooner to improve the live preview timing.
This commit is contained in:
Paul
2024-07-19 15:24:53 -04:00
committed by GitHub
parent cf6da0186b
commit 014ee1a1b2
3 changed files with 109 additions and 89 deletions

View File

@@ -148,7 +148,7 @@ export class NextRESTClient {
}
async PATCH(path: ValidPath, options: FileArg & RequestInit & RequestOptions): Promise<Response> {
const { url, slug, params } = this.generateRequestParts(path)
const { slug, params, url } = this.generateRequestParts(path)
const { query, ...rest } = options
const queryParams = generateQueryString(query, params)