Loading data
Data loading can be done in doRefresh() since it gets a reference to the note:
const blob = await note.getBlob();
const content = blob.getJsonContent();Note that doRefresh can sometimes be called by Saving data via spaced update when the user makes a changes, this has to be accounted for.