SCRATCHFILE_ADDRESSED¶
Backlinks¶
- CANs note-existence handler should listen for SCRATCHFILE_ADDRESSED
- So CAN can learn if the scratchfile contains a new note. The note-existence handler should listen to the SCRATCHFILE_ADDRESSED event. Once recieved, the handler should check if a note at this address exists in the notebook. CAN's note-existence handler should fire NOTE_EXISTENCE when it determines if a note exists.
- CAN's store should listen to SCRATCHFILE_ADDRESSED
- When CAN's state store detects a SCRATCHFILE_ADDRESSED event, it should update the currentscratchfileaddress field. The CAN store's currentscratchfileaddress field holds the address of everything above-the-fold in the scratchfile