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

♻️ refactor: Ensure Sequential Update and Refresh of Topics with Async Handling #2058

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

sfyr111
Copy link
Contributor

@sfyr111 sfyr111 commented Apr 16, 2024

💻 变更类型 | Change Type

  • ✨ feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 🔨 chore
  • ⚡️ perf
  • 📝 docs

🔀 变更说明 | Description of Change

  • Refactored updateTitle to be an async function.
  • Utilized await for the updateTitle function call in the onFinish event handler.
  • Ensured refreshTopic is invoked only after the updateTitle promise resolves.

📝 补充信息 | Additional Information

This change improves the reliability of our topic update mechanism by enforcing a strict order of operations, thereby ensuring that users see the most current data after updates are applied without encountering any inconsistencies.

Copy link

vercel bot commented Apr 16, 2024

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

A member of the Team first needs to authorize it.

@lobehubbot
Copy link
Member

👍 @sfyr111

Thank you for raising your pull request and contributing to our Community
Please make sure you have followed our contributing guidelines. We will review it as soon as possible.
If you encounter any problems, please feel free to connect with us.
非常感谢您提出拉取请求并为我们的社区做出贡献,请确保您已经遵循了我们的贡献指南,我们会尽快审查它。
如果您遇到任何问题,请随时与我们联系。

@arvinxx
Copy link
Contributor

arvinxx commented Apr 17, 2024

please rebase the code first.

@arvinxx
Copy link
Contributor

arvinxx commented Apr 17, 2024

what's the problem with the current implement?

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.

None yet

3 participants