Skip to content

Changes lost if running in multiple tabs/windows and don't refresh first #19

Description

@codingthat

Hey, something small and reproducible for once ;)

v1.6.1

  1. Mark task A complete in browser 1
  2. Open browser 2 where mindstream was a saved tab
  3. In browser 2, don't refresh; you can see task A is still incomplete; don't touch it
  4. In browser 2, add task B
  5. In browser 1, refresh; task A is now incomplete

So the stale state from browser 2 becomes current again because browser 2 wasn't refreshed first.

This is also true if browser 2 was already opened and just not refreshed lately.

Perhaps whenever receiving the focus, or maybe on any user action, the file timestamp could be checked and a refresh forced only if todo.txt seems to have been modified since we last modified it (implying another tab or CLI or manual edit modified it).

I often use mindstream in multiple tabs because it's nice to have one-click access to multiple views by project/context/etc. More specifically, it's nice to keep a mindstream tab filtered by the relevant project beside other tabs relevant to the project, all in the same browser window.

Same goes for doing cleanup in a text editor though. Either way you have to remember to refresh in every browser tab, otherwise you risk losing all your changes and have to redo them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions