[WIKI-331] fix: editor ref issues while locking/unlocking page#6965
[WIKI-331] fix: editor ref issues while locking/unlocking page#6965sriramveeraghanta merged 1 commit intopreviewfrom
Conversation
WalkthroughThe changes introduce a new useEffect hook in the editor page root component to ensure that the editor reference is updated asynchronously whenever relevant dependencies change. Additionally, the assignment of the pageInstance variable within the fetchPageDetails method in the project page store has been relocated to occur inside the runInAction block, slightly altering the timing of the assignment without affecting the method's logic or public interfaces. Changes
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🧰 Additional context used🧬 Code Graph Analysis (1)web/core/components/pages/editor/page-root.tsx (1)
⏰ Context from checks skipped due to timeout of 90000ms (1)
🔇 Additional comments (3)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
857c256 to
31eab26
Compare
|
Pull Request Linked with Plane Work Items Comment Automatically Generated by Plane |
Description
Fixes the editor ref issue with toolbar when locking/unlocking/performing other actions that change the
editablestate of the editor.Summary by CodeRabbit