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

fix: 修复 tpl 改成异步模版后存在不更新的情况 #7082

Merged
merged 1 commit into from
Jun 5, 2023

Conversation

2betop
Copy link
Collaborator

@2betop 2betop commented Jun 5, 2023

What

🤖 Generated by Copilot at 28a17f1

Refactored Tpl component to support async expressions in content props. Added getAsyncContent() method to handle promise-based rendering.

🤖 Generated by Copilot at 28a17f1

Oh we're the coders of the sea, and we work with Tpl
We refactor and we test, and we make it run so well
We use async expressions now, in html, tpl, and text
We heave away on the count of three, and we call getAsyncContent()

Why

How

🤖 Generated by Copilot at 28a17f1

  • Replace getContent() method with getAsyncContent() method to support asynchronous expressions in the Tpl component (link, link, link, link)

@github-actions github-actions bot added the fix label Jun 5, 2023
@github-actions
Copy link

github-actions bot commented Jun 5, 2023

👍 Thanks for this!
🏷 I have applied any labels matching special text in your issue.

Please review the labels and make any necessary changes.

@lurunze1226 lurunze1226 merged commit ceab488 into baidu:master Jun 5, 2023
3 of 4 checks passed
@2betop 2betop deleted the fix-async-tpl branch June 5, 2023 06:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants