[PR #264] [MERGED] fix(#244): error in render when using Q&A after inserting content from record #717

Closed
opened 2026-03-02 03:41:26 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/codexu/note-gen/pull/264
Author: @Thomas40522
Created: 6/12/2025
Status: Merged
Merged: 6/13/2025
Merged by: @codexu

Base: devHead: dev


📝 Commits (1)

  • 6922380 for question, ignore subsequence emit while function handle block is running

📊 Changes

1 file changed (+16 additions, -1 deletions)

View changed files

📝 src/app/core/article/custom-toolbar/question.tsx (+16 -1)

📄 Description

Although this issue is closed, based on my testing on a Mac computer, this problem persist when I try to use Q&A after inserting content from the record. Based on my observation, the render error happened when the function handleBlock is called twice consecutively. Therefore, I added a gaurdedHandler that ignore subsequence emits while function handleBlock is running.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/codexu/note-gen/pull/264 **Author:** [@Thomas40522](https://github.com/Thomas40522) **Created:** 6/12/2025 **Status:** ✅ Merged **Merged:** 6/13/2025 **Merged by:** [@codexu](https://github.com/codexu) **Base:** `dev` ← **Head:** `dev` --- ### 📝 Commits (1) - [`6922380`](https://github.com/codexu/note-gen/commit/6922380448b83bf53772cc11018fe6d8306a3881) for question, ignore subsequence emit while function handle block is running ### 📊 Changes **1 file changed** (+16 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/app/core/article/custom-toolbar/question.tsx` (+16 -1) </details> ### 📄 Description Although this issue is closed, based on my testing on a Mac computer, this problem persist when I try to use Q&A after inserting content from the record. Based on my observation, the render error happened when the function handleBlock is called twice consecutively. Therefore, I added a gaurdedHandler that ignore subsequence emits while function handleBlock is running. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-02 03:41:26 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/note-gen#717
No description provided.