Skip to content

Add recipe for autosaving#32

Open
sindresorhus wants to merge 2 commits into
mainfrom
recipe
Open

Add recipe for autosaving#32
sindresorhus wants to merge 2 commits into
mainfrom
recipe

Conversation

@sindresorhus

Copy link
Copy Markdown
Owner

Fixes #31


// @Richienb

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread readme.md Outdated
@Richienb

Copy link
Copy Markdown
Contributor

Is it good practice to limit the rate that saves are made? Maybe by using pMinDelay(..., 100)?

@sindresorhus

Copy link
Copy Markdown
Owner Author

pMinDelay for rate limiting is not needed. The debounce wait already rate-limits saves (user must stop typing for 1s). The "after: true" serialization ensures saves don't overlap. Adding pMinDelay would just add complexity without solving any actual problem.

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.

Add autosave recipe

3 participants