Repository navigation
Fixed background refetches closing the React editor #31272
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -342,6 +342,16 @@ Once the post is on screen, a refetch that fails leaves the editor, the session | |
| and the unsaved content where they are, and the next save reports a deleted | ||
| post, an expired session or a collision itself. | ||
|
|
||
| The read that opens the post also decides whether the writer may edit it, and | ||
| whether a post stored only as mobiledoc must be converted first. An Author or | ||
| Contributor who is not among its authors, or a Contributor on a post that is no | ||
| longer a draft, is returned to the list. A post reopened from a stale cached copy | ||
| shows that copy while its refetch runs, and the refetch decides. Once that read | ||
| has settled, later reads decide neither: a refetch that takes away the writer's | ||
|
Comment on lines
+349
to
+350
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win Wait for the opening refetch before denying access. If a cached post excludes the Author, 🤖 Prompt for AI Agents |
||
| access, or that brings a version stored only as mobiledoc, leaves the editor and | ||
| the unsaved content where they are, and the next save shows the server's refusal | ||
| or the collision. | ||
|
|
||
| What a halted queue looks like is the session's caller's decision, not the | ||
| engine's: `reauth-pending` and `conflict` are states, not UI. The writer gets a | ||
| way back in and the content stays untouched. | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.