'update-note-text':(s,{id,text})=>{constnote_s=s.notes.find(n=>n.note_id===id);s.db[note_s.note_id].model.text=text;},// updates underlying note text (i.e. the "model", not the app note_state) "in the background" (e.g. from a server-pushed update), regardless of whether it's being edited; "save" is a separate action, below
'update-note-text':(s,{id,text})=>{constnote_s=s.notes.find(n=>n.note_id===id);note_s.is_new=false;s.db[note_s.note_id].model.text=text;},// updates underlying note text (i.e. the "model", not the app note_state) "in the background" (e.g. from a server-pushed update), regardless of whether it's being edited; "save" is a separate action, below