Skip to content

Fix async save flow handling in React app#85

Open
nehayadav827 wants to merge 1 commit into
seetadev:mainfrom
nehayadav827:fix/save-flow-async-38
Open

Fix async save flow handling in React app#85
nehayadav827 wants to merge 1 commit into
seetadev:mainfrom
nehayadav827:fix/save-flow-async-38

Conversation

@nehayadav827
Copy link
Copy Markdown

What's wrong

doSave() and newFile() call _getFile() without await, so they
get a Promise instead of actual file data. This means data.created
is always undefined — silently corrupting metadata on every save.

What I changed

  • doSave() in Menu.tsx → made async, added await + null guard with IonToast
  • newFile() in NewFile.tsx → same fix

Proof

Validated in browser console (screenshot below) — BEFORE shows
undefined, AFTER shows the correct date, GUARD confirms no crash
on missing file.

Closes #38

Screenshot 2026-05-15 151013

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.

Fix - react's save flow async

1 participant