Skip to content

Keep Home data when add forms are canceled - #86

Merged
thermcampos merged 1 commit into
thermcampos:mainfrom
humairaambreen:fix/home-cancel-cache
Sep 26, 2026
Merged

thermcampos merged 1 commit into
thermcampos:mainfrom
humairaambreen:fix/home-cancel-cache

Conversation

@humairaambreen

Copy link
Copy Markdown
Contributor

On Cancel from Add Task or Add Note, Home’s data hasn’t changed. Keep the last items and tags in memory and reuse them when Home mounts again, avoiding the extra requests.

A successful save still fetches fresh data. Deleting a task or note also refreshes tags so tags with no remaining items disappear. Cached responses are copied so Home’s in-place task translation cannot alter the stored data.

Closes #85.

Checks:

  • npm run test:no-watch -- --maxWorkers=1 --reporter=dot (150 passed)
  • npm run lint
  • npm run build

@thermcampos

thermcampos commented Sep 25, 2026 •

Copy link
Copy Markdown
Owner

Thank you for the PR @humairaambreen ! I really appreciate it.

I'm finishing a work that changes the note document rendering, I'll prioritize that, get it merged then look at this PR, since it doesn't touch what's being changed.

I'll keep you posted :D

@humairaambreen

Copy link
Copy Markdown
Contributor Author

Thanks for the update. That makes sense; I’m happy to wait until the rendering change is merged. Let me know if you need anything adjusted on this one.

@thermcampos thermcampos left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great PR! Clean. It looks amazing. 🥳 🚀

I see a small improvement in the signOut function but I can handle that in a follow up PR!

Thanks a ton!

@thermcampos
thermcampos merged commit e9f432f into thermcampos:main Sep 26, 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.

[feat] Do not reload home when coming back from notes and tasks

2 participants