Skip to content

Conversation

@ggualiato
Copy link
Contributor

@ggualiato ggualiato commented Jul 26, 2025

Description

Detailing onSucess callback, when it runs and what case should be used.

  • Adding new page
  • [x ] Updating existing documentation
  • Other updates

@ggualiato ggualiato requested review from huozhi and shuding as code owners July 26, 2025 00:20
@vercel
Copy link

vercel bot commented Jul 26, 2025

@ggualiato is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.

@ggualiato
Copy link
Contributor Author

Hello @shuding and @huozhi, sorry to bother, but I believe this would be a great addition to the docs because it leads developers to use the onSuccess options wrongly.

I created this PR based on my experience with a project that utilizes SWR, where the use of onSuccess was causing issues, but because it was misused and there were no more details about its behaviour in the current docs.

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.

1 participant