fix: prevent linked notes from being overwritten with old state#17
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughAdds ChangesProject Philosophy Documentation
Editor Remount on Note Switch
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
Fixes a bug where opening a new note via an internal link, the search bar, or back navigation would cause the newly opened note to be overwritten by the contents of the previous note.
Added a
keyprop tied toactiveNote.idto theCodeMirrorcomponent to ensure it fully remounts when changing notes, discarding stale state.Summary by CodeRabbit
Documentation
Bug Fixes