Skip to content

fix: don't save -> write page on load#202

Merged
ruchamahabal merged 1 commit into
frappe:developfrom
ruchamahabal:fix-writes
Jul 22, 2026
Merged

fix: don't save -> write page on load#202
ruchamahabal merged 1 commit into
frappe:developfrom
ruchamahabal:fix-writes

Conversation

@ruchamahabal

@ruchamahabal ruchamahabal commented Jul 22, 2026

Copy link
Copy Markdown
Member

onActivated check + immediate watcher on pageID led to 2 setPage calls. The second one's setRootBlock was treated as an edit because first one was finished by then and settingPage was false so it treated the second setRootBlock as page dirty and saved -> exported page file

@ruchamahabal
ruchamahabal marked this pull request as ready for review July 22, 2026 16:53
@greptile-apps

greptile-apps Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5

The latest changes look safe to merge.

  • No new blocking issue meets the follow-up review scope.

Reviews (2): Last reviewed commit: "fix: don't save -> write page on load" | Re-trigger Greptile

Comment thread frontend/src/stores/studioStore.ts Outdated
- onActivated check + immediate watcher on pageID led to 2 setPage calls. The second one's setRootBlock was treated as an edit because first one was finished by then and settingPage was false so it treated the second setRootBlock as page dirty and saved -> exported page file
@ruchamahabal ruchamahabal changed the title fix: don't save -> write page on reload fix: don't save -> write page on load Jul 22, 2026
@ruchamahabal
ruchamahabal merged commit 0c31b27 into frappe:develop Jul 22, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant